Spring Boot 谷粒学院项目问题汇总

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

猜你喜欢

转载自blog.csdn.net/guorui_java/article/details/106794847