![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaEE
木鱼213
这个作者很懒,什么都没留下…
展开
-
RestTemplate 发送post请求并支持自定义header
RestTemplate 发送post请求并支持自定义header 之前post请求一直用httpclient ,写起来比较麻烦,所以最好是写一个utils 然后到处调用,自从用RestTemplate进行get和post请求之后,发现方便许多,能够满足大部分需求。 不说了,直接上代码: HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON_UTF8);原创 2020-07-03 11:46:12 · 5851 阅读 · 0 评论 -
SpringBoot+ActiveMQ多消息队列监听
其实springboot多消息队列监听和spring基本一样,只是配置上稍有区别' 1.在有@Configuration注解的java类中加如下配置 @Bean public DefaultMessageListenerContainer listenerContainer(){ DefaultMessageListenerContainer m =new DefaultMessageL原创 2017-08-03 07:34:47 · 11155 阅读 · 4 评论 -
Could not initialize class org.hibernate.validator.internal.engine.Configura
Could not initialize class org.hibernate.validator.internal.engine.Configura早上启动项目,遇到这样的问题,在网上找来找去,说是jar包冲突,遇事去maven仓库将中的hibernate包删掉,然后重新下面,问题解决。...原创 2018-05-25 07:53:55 · 9609 阅读 · 0 评论