坑
Mr。F
欲与天公试比高
展开
-
Mapper for [name] conflicts with existing mapping in other types:
Mapper for [name] conflicts with existing mapping in other types:[mapper [name] is used by multiple types. Set update_all_types to true to update [search_analyzer] across all types., mapper [name] is...原创 2019-12-16 13:46:10 · 8242 阅读 · 1 评论 -
springboot 扫描不到mapper文件
如果排除了名字不对的问题 还是没有解决,看一下依赖的jar包,mybatis-plus 和mybatis-plus-core 一起依赖 会导致这种问题,删除core依赖可以解决原创 2019-07-12 15:24:24 · 1212 阅读 · 0 评论 -
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
springboot 启动报错。解决步骤:1,导入jar包org.springframework.bootspring-boot-starter-tomcatprovided2,启动类编辑将include对勾打上!原创 2019-06-19 13:25:25 · 180 阅读 · 0 评论 -
idea打开项目没有src文件
解决办法:删掉本地的 .idea文件 重新打开原创 2019-04-29 10:13:27 · 10169 阅读 · 3 评论 -
spring-cloud 没有扫描到dao层的jar包
Field courseMapper in com.qfedu.provider.course.provider.CourseProvider required a bean of type ‘com.qfedu.dao.course.CourseMapper’ that could not be found.The injection point has the following annot...原创 2019-03-26 21:44:14 · 974 阅读 · 0 评论 -
springboot打包时需要注意的问题
1.pom.xml中 将jar包改为war包;2、`@SpringBootApplication@MapperScan("com.qfedu.cgv.dao")public class CgvApplication extends SpringBootServletInitializer { @Override protected SpringApplicationBuil...原创 2019-03-12 20:36:11 · 419 阅读 · 0 评论 -
Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.
出错原因:jar包冲突,dubbo项目的jar包 默认带的springmvc版本太老。和自己导入的springmvc冲突。解决方法:把自己的springmvc的jar包的顺序放在dubbo之前原创 2019-03-20 18:04:47 · 10896 阅读 · 0 评论 -
阿里云服务器配置发邮件功能不可用
Java springboot 项目增加一个邮箱验证码功能,本地测试没有问题,上传到服务器上时邮件发送不了。网上搜了一下问题,是因为云服务器禁用了25端口,邮箱的默认端口,通过修改properties文件中的端口号后成功解决。#邮件发送配置spring.mail.default-encoding=UTF-8spring.mail.host=smtp.qq.comspring.mail.us...原创 2019-03-11 10:18:47 · 677 阅读 · 0 评论 -
No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type
@NotNull 和 @NotEmpty 和@NotBlank 区别@NotEmpty 用在集合类上面@NotBlank 用在String上面@NotNull 用在基本类型上原创 2019-03-14 17:34:13 · 1154 阅读 · 0 评论 -
bootstrap点击按钮没反应
点击查讯按钮没反应,但是页面缩小以后可以点击,如下:解决方法:通过查看代码发现栅格系统,分配不对,改成如下分配方式就没问题了:因为对前端研究不是很在行,所以也不明白到底是为什么,只知道一行十二格,其余就一知半解了,虽然页面样式有所差别,但是可以使用。...原创 2019-03-09 10:03:09 · 3179 阅读 · 0 评论