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

论坛 期权论坛 脚本     
匿名技术用户   2021-1-6 14:48   28   0

一、谷粒学院

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

暂时未解决!

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,果然好用!

2、P18 中test启动测试product的CRUD,启动报错Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

切勿病急乱投医,

查查查,啥原因呢?

解决办法:1、用com.mysql.cj.jdbc.Driver替换com.mysql.jdbc.Driver;

2、直接继续用com.mysql.jdbc.Driver,只是会出现警告,但不会有什么问题;

上一篇:【全栈最全Java框架总结】SSH、SSM、Springboot

下一篇: 超详细的springBoot学习笔记

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP