Java
qin_na
这个作者很懒,什么都没留下…
展开
-
打包后spring项目中的xml解析异常
1.背景:spring 项目,idea本地run Application没有问题,maven打包传输到服务器上之后无法解析依赖的第三方的xml配置文件。 2.排查 尝试在浏览器打开第三方的xsd schema,无法打开。 解压缩机器上的jar包后查看META-INF下spring.schemas,只有一组对应xml和jar中schema的对应关系 **总结:识别不了xml文件,是因为第三方的多个...原创 2019-12-31 19:42:59 · 1108 阅读 · 0 评论 -
HashMap源码理解
HashMap的一些默认参数如下:/** * The default initial capacity - MUST be a power of two. */ static final int DEFAULT_INITIAL_CAPACITY = 16; /** * The maximum capacity, used if a higher va...原创 2018-05-23 16:23:34 · 246 阅读 · 0 评论 -
thymeleaf+springboot找不到html
thymeleaf+springboot找不到html,只返回了字符串问题描述:1:项目结构:2:核心代码@RestController @RequestMapping(value = "/city") public class CityWebFluxController { @Autowired private CityHandler cityHandler; ...原创 2018-06-05 14:24:40 · 6279 阅读 · 0 评论 -
postman第一次使用
springboot接口接收@RequestBody类型的参数,postman配置1:正确的url、请求方式2:填写Content-Type对应的value是application/json3:选中raw原创 2018-06-05 18:28:47 · 1142 阅读 · 0 评论