Spring Boot API with Multiple Controllers?

后端 未结 8 1061
孤城傲影
孤城傲影 2021-02-07 12:36

I am starting to learn Spring Boot. I am struggling to find an example with multiple RestControllers, which indicates to me that I may be doing something wrong. I am trying a ve

8条回答
  •  终归单人心
    2021-02-07 13:18

    Make sure that the @SpringBootApplication class is in a package which is a level above all other packages that contain @RestControllers, or in the same package.

提交回复
热议问题