![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring随记
文章平均质量分 54
fansili
这个作者很懒,什么都没留下…
展开
-
Valid Type Name, BindingResult bindingResult
Valid Type Name, BindingResult bindingResult1.Java使用mysql-jdbc连接MySQL出现如下警告:使用springboot框架进行 新增 和 修改 操作时,页面报错,报错信息如下:Whitelabel Error PageThis application has no explicit mapping for /error, so you a原创 2017-10-17 11:42:51 · 882 阅读 · 1 评论 -
spring boot 请求参数增加string 转date全局转换器
使用springboot框架对日期类型进行操作,遇到无法保持的情况,一开始报400的错误(解决方法),解决之后日期类型无法保存到数据库,为了解决这个问题,设置了个全局date转换器。配置方法1、新增一个转换类新增一个string转换成date的类,实现Converter接口,代码如下:import java.text.SimpleDateFormat;import java.util.Date;i转载 2017-10-27 17:03:53 · 16227 阅读 · 3 评论 -
SpringMVC日期类型转换问题三大处理方法归纳
前言 我们在SpringMVC开发中,可能遇到比较多的问题就是前台与后台实体类之间日期转换处理的问题了,说问题也不大,但很多人开发中经常会遇到这个问题,有时很令人头疼,有时间问题暴露的不是很明显,然后逐渐对问题进行跟踪,会发现是日期类型转换失败“映射”不到对应的持久类的日期属性上造成的,由此我还特意写过一篇博文:SpringMVC中出现" 400 Bad Request "错误(用@Respon转载 2017-10-27 17:26:53 · 319 阅读 · 0 评论 -
glyphicons-halflings-regular.woff2 net::ERR_ABORTED
使用bootstrap日历控件问题记录1、报错信息使用bootstrap日历控件,图片和箭头出不来,且js报错如下: http://localhost:8080/fonts/glyphicons-halflings-regular.woff2 net::ERR_ABORTED2、报错原因是:在bootstrap.min.css中有对这些字体文件的引用: @font-face{ font-fami原创 2017-10-25 17:25:40 · 33935 阅读 · 3 评论 -
Property or field 'LevelName' cannot be found on null
Property or field ‘LevelName’ cannot be found on null1、报错信息:Springboot+mybatis+thymeleaf多表查询时,thymeleaf页面报错:Property or field ‘LevelName’ cannot be found on null, 图片如下:2、页面代码:td th:text="${ulevel.Leve原创 2017-10-19 16:03:55 · 17417 阅读 · 4 评论 -
springboot项目浏览器报错:There was an unexpected error (type=Not Found, status=404).
springboot项目浏览器报错:There was an unexpected error (type=Not Found, status=404).报错信息springboot+thymeleaf项目,运行时页面报错信息如下:This application has no explicit mapping for /error, so you are seeing thi...转载 2017-12-23 15:40:20 · 129238 阅读 · 16 评论 -
springboot dao层注解失败
springboot dao层注解失败springboot 项目编译报错 报错信息如下Field ulevelDao in demo.service.impl.UlevelServiceImpl required a bean of type demo.dao.UlevelDao' that could not be found.Consider defining a bean of type '原创 2017-12-23 22:01:58 · 17363 阅读 · 3 评论 -
@Component, @Repository, @Service的区别
@Component, @Repository, @Service的区别官网引用引用spring的官方文档中的一段描述:在Spring2.0之前的版本中,@Repository注解可以标记在任何的类上,用来表明该类是用来执行与数据库相关的操作(即dao对象),并支持自动处理数据库操作产生的异常在Spring2.5版本中,引入了更多的Spring类注解:@Component,@Service,@Con转载 2017-12-07 14:18:47 · 171651 阅读 · 18 评论 -
解决 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
解决 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".今天使用junit时出现这个错误提示,虽然运行结果没有问题,但还是解决并记录。官网的说明和解决方法This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be...原创 2018-03-29 00:23:25 · 5354 阅读 · 0 评论