skip to Main Content

Using Flyway with MongoDB and Spring Boot

I'm trying to use Flyway with MongoDB and Spring Boot. In other projects, I've successfully used Flyway with SQL DBs, and Spring automatically runs the migrations. With MongoDB, however, it seems that the that Spring Boot autoconfiguration isn't initializing the…

VIEW QUESTION

No mapping for GET /json1/user

I'm working on a SpringMVC project. my jsonController.java: @RequestMapping("json1") @RestController //= @Controller+@ResponseBody public class jsonController { @RequestMapping("user") public User data(){ User user = new User(); user.setAge(22); user.setName("kt"); return user; } } my mvcConfig.java: @EnableWebMvc @Configuration @ComponentScan(basePackages = "com.atguigu.json") public class…

VIEW QUESTION
Back To Top
Search