spring
ccyy-Csdn
干就完了
展开
-
spring注解@Value取不到值
spring注解@Value取不到值拉到最后的——解决方法解决这个问题的一篇文章(转)@Value取不到值引出的spring的2种配置文件applicationContext.xml和xxx-servlet.xml项目中经常会用到配置文件,定义成properties的形式比较常见,为了方便使用一般在spring配置文件中做如下配置:<context:property-p...转载 2018-10-09 16:41:42 · 1026 阅读 · 0 评论 -
spring中自带的RESTFUL接口调用方式,RestTemplate 取消https(SSL)验证
使用RestTemplateprivate RestTemplate restTemplate = new RestTemplate();// 如果中文乱码可以使用此方法修改restTemplate的编码(默认ISO_8859_1)restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(Char...原创 2019-06-20 15:52:36 · 1823 阅读 · 1 评论