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

 

5、P98  easyExcel導入Excel文件時,報錯

Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/beans/BeanMap

暫時未解決!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章