Spring Boot 谷粒学院、谷粒商城项目问题汇总
解决办法:
![](https://img-blog.img.cn/20200616203234778.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naG
VpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2d1b3J1aV9qYXZh,size_16,color_FFFFFF,t_70)
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
暂时未解决!
6、aliyun-java-vod-upload飘红
mvn install:install-file -DgroupId=com.aliyun -DartifactId=aliyun-sdk-vod-upload -Dversion=1.4.11 -Dpackaging=jar -Dfile=aliyun-java-vod-upload-1.4.11.jar
aliyun-java-vod-upload依旧飘红
下一篇:
面试常问服务器?Nginx八道必懂面试题