03 2020 档案

摘要:使用工具类处理调用 直接调用就不会走代理了 @Component public class SpringContextUtil implements ApplicationContextAware { // Spring应用上下文环境 private static ApplicationContex 阅读全文
posted @ 2020-03-31 19:04 荣超 阅读(1311) 评论(0) 推荐(0) 编辑
摘要:引入 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <group 阅读全文
posted @ 2020-03-30 14:14 荣超 阅读(298) 评论(0) 推荐(0) 编辑
摘要:设置编码为utf-8 最好设置一下 我的刚开始没设置是正常的,换了台电脑就乱码了 Charset charset = StandardCharsets.UTF_8; @Bean public RestTemplate restTemplate(){ RestTemplate restTemplate 阅读全文
posted @ 2020-03-24 17:28 荣超 阅读(958) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示