![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
源码spring
spring源码
开发1024
IT从业六载的Java士兵
展开
-
ApplicationContextAware使用理解
问题背景在我们的web程序中,用spring来管理各个实例(bean), 有时在程序中为了使用已被实例化的bean, 通常会用到这样的代码:ApplicationContext appContext = new ClassPathXmlApplicationContext("applicationContext-common.xml"); AbcService abcService = (AbcService)appContext.getBean("abcService");但是这样就会存在一个原创 2020-11-12 20:16:45 · 267 阅读 · 0 评论 -
spring使用@Value标签读取*.properties文件的中文乱码问题的解决
在spring中我们常常使用.properties对一些属性进行一个提前配置,spring在读取∗.properties文件时,默认使用的是asci码,这时我们需要对其编码进行转换.当然方法有很多种,我说以下几种1.在配置spring.xml文件时,声明所需的∗.properties文件时直接使用"utf−8"编码<context:property-placeholder location="classpath:conf/*.properties" file-encoding="UTF-8"/&g原创 2020-11-12 20:04:06 · 283 阅读 · 0 评论 -
JSON格式错误报JSON parse error:
问题前端传Json格式数据到后台后,springmvc报org.springframework.http.converter.HttpMessageNotReadableException: * JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token; ...原创 2020-02-22 11:38:56 · 31938 阅读 · 0 评论 -
spring全家桶的技术体系介绍
官网spring有个官网,叫spring.io,打开后可以看到下图这是spring整个大项目的官网首页,在这个大项目首页里面的东西是比较重要的,比如会告诉你springboot2.0的Reactor ,就是我们传统的servlet技术栈和我们reactor 技术栈的区别:Reactor Stack 里有Netty、Servlet3.1+等等,Spring WebFlux是我们sprin...原创 2020-01-10 11:25:48 · 468 阅读 · 0 评论