
Spring
Spring基本知识
JoyceYoungYYY
这个作者很懒,什么都没留下…
展开
-
springboot+mybatis(mybatisplus)配置遇到的问题记录
1、项目启动时报错,大概意思是@Autowired引用mapper时必须写(required = true)。 原因是:没有在启动类添加 @MapperScan("com.*.mapper") 2、项目启动报错找不到mapper 启动类添加了@MapperScan(“com.*.mapper”)也不生效: 报错信息如下: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with原创 2020-07-19 19:21:22 · 1604 阅读 · 0 评论 -
1、SpringMVC中处理中文乱码
目录post请求:在web.xml中添加代码get请求:修改tomcatserver.xml的配置 post请求:在web.xml中添加代码 <!-- 解决post乱码问题 --> <filter> <filter-name>encoding</filter-name> <filter-class> org.springframework.web.filter.CharacterEncodingFilter </filte原创 2020-10-24 19:32:45 · 139 阅读 · 0 评论