Spring Boot 谷粒学院、谷粒商城项目问题汇总,tomcat 面试题
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 依旧飘红?
简单粗暴:
二、谷粒商城
======
1、P16:renren-fase-vue 导入 vscode 启动失败!
具体原因是 nodejs 版本问题,之前安装的是 12+的 nodejs,后来重复看视频、看弹幕说是 nodejs 版本问题,换到了和视频中 nodejs 版本一致的 10.16.3,果然好用!
评论