1、Spring Boot项目下的service_edu子模块,用测试类@Test执行MyBatis Plus代码生成器的时候,发现执行不了。
解决办法:
2、If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
解决办法:
在启动类上加:
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
3、 java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist
4、swagger
【Spring Boot swagger 】Unable to infer base url... Please enter the location manually
解决办法:在启动类加入
@EnableSwagger2