
spring boot
文章平均质量分 67
huas_mcfeng
学海无涯!
展开
-
springboot 前端传来的参数是string 后台接受类型为date
前提:前端传来string,采用ajax,post请求后端(springboot 采用@RequestBody 接受对象)后台报错:JSON parse error: Cannot deserialize value of type java.util.Date from String解决办法:实体类时间属性加上此注释:@JsonFormat(shape = JsonFor...原创 2020-04-08 10:38:10 · 3196 阅读 · 0 评论 -
spring boot访问根盘下的文件:
在yml里添加spring.mvc和resourcespring: mvc: static-path-pattern: /** resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, classpath:/public/, ...原创 2019-04-30 10:00:03 · 1808 阅读 · 0 评论