Getting “No message available” error with Spring Boot + REST application

后端 未结 10 2456
感动是毒
感动是毒 2020-12-30 02:02

I have created demo Spring Boot project and implemented Restful services as shown here

@RestController
public class GreetingsController {
    @RequestMappin         


        
10条回答
  •  北海茫月
    2020-12-30 02:33

    For me I have the same error, but I realise that the path I put to call the api is the problem. If my application name is demo, I have to call http://localhost:9090/AdminProducts to access AdminProducts, not http://localhost:9090/demo/AdminProducts. This name may be use after deploying the war in tomcat.

提交回复
热议问题