随笔分类 -  Spring

摘要:若使用默认的json转换器,则需要如下包; 报错如下: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported 解决方案: 引入如下包: 问题既解决。 若使用外部的其他json转换,则需要配置相关的转换 阅读全文
posted @ 2017-08-25 17:09 lyhappyday 阅读(12870) 评论(0) 推荐(0)
摘要:以上为线程池的一些配置。 写了一个service,初始化线程池,并且,作为一个调用线程的接口 再写一个runnable 使用的时候 @Autowired private ThreadPoolTaskService threadPoolTaskService; threadPoolTaskServic 阅读全文
posted @ 2017-04-18 20:20 lyhappyday 阅读(257) 评论(0) 推荐(0)