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
5、P98 easyExcel導入Excel文件時,報錯
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/beans/BeanMap
暫時未解決!