10 2020 档案

摘要:import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Re 阅读全文
posted @ 2020-10-30 10:49 然然1907 阅读(95) 评论(0) 推荐(0) 编辑
摘要:import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONType; import com.alibab 阅读全文
posted @ 2020-10-29 14:05 然然1907 阅读(2815) 评论(0) 推荐(0) 编辑
摘要:package com.tianrang.vcc.controller.filter; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.ann 阅读全文
posted @ 2020-10-29 14:02 然然1907 阅读(2703) 评论(0) 推荐(0) 编辑
摘要:1、首先,为啥要知道这个东西呢?因为现在项目基本都是前后端分离,操作的话一般都是返回json串,但是会有这种情况,加入你put一个key和value的时候,如果value是空,那么等你返回给前台的时候,前台就连这个key也拿不到了,就直接省掉了(相当于过滤掉了)加上SerializerFeature 阅读全文
posted @ 2020-10-27 17:22 然然1907 阅读(1057) 评论(0) 推荐(0) 编辑
摘要:SpringBoot打包后无法访问JAR中的路径,所以必须使用resource.getInputStream(), 直接读取文件异常如下: java.io.FileNotFoundException: class path resource [validator-config/battery.xml 阅读全文
posted @ 2020-10-27 16:46 然然1907 阅读(2978) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示