摘要: 1.在controller 上加上 @CrossOrigin(origins = {"http://localhost:7777", "http://someserver:8080"}) eg:localhost 意思是允许本地跨域访问 7777:允许访问的端口号 阅读全文
posted @ 2018-08-28 20:22 lshan 阅读(3008) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/h--d/p/7555119.html 阅读全文
posted @ 2018-08-28 13:42 lshan 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 发现与之前使用的有些不同 参考:https://www.cnblogs.com/h--d/p/6735110.html 阅读全文
posted @ 2018-08-28 12:16 lshan 阅读(121) 评论(0) 推荐(0) 编辑
摘要: private static final ConcurrentMap<String, DateTimeFormatter> FORMATTER_CACHE = new ConcurrentHashMap<>(); private static final int PATTERN_CACHE_SIZE 阅读全文
posted @ 2018-08-28 10:00 lshan 阅读(8573) 评论(0) 推荐(0) 编辑