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