上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 89 下一页
摘要: 依赖: 使用:在你要生成接口处加上注解@EnableSwagger2 ,此处是整个项目都要,不建议这么玩, 建议加在controller上 自定义标题:配置:(这个可以不配置) 方法描述: 在方法上加上 @ApiOperation 效果: 参数描述:1. 参数是 包装类 或者模型 如PartDO 在 阅读全文
posted @ 2018-09-01 18:59 lshan 阅读(7367) 评论(0) 推荐(0)
摘要: 比较实用的一些参考: https://www.cnblogs.com/yaogua/p/8012951.html https://www.cnblogs.com/aston/p/9053201.html DateUtils: import lombok.extern.slf4j.Slf4j; imp 阅读全文
posted @ 2018-09-01 16:54 lshan 阅读(250) 评论(0) 推荐(0)
摘要: AWS Access Key ID [****************test]: adasdsadasd AWS Secret Access Key [****************2016]: U4fdOdasdsadsad Default region name [ap-southeast- 阅读全文
posted @ 2018-08-30 18:10 lshan 阅读(243) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/dunitian/p/5581520.html 阅读全文
posted @ 2018-08-29 22:27 lshan 阅读(184) 评论(0) 推荐(0)
摘要: 方式1: private File transferToFile(MultipartFile multipartFile) { // 选择用缓冲区来实现这个转换即使用java 创建的临时文件 使用 MultipartFile.transferto()方法 。 File file = null; tr 阅读全文
posted @ 2018-08-29 21:33 lshan 阅读(46834) 评论(4) 推荐(3)
摘要: 參考:http://www.cnblogs.com/lihaoyang/p/7348293.html 阅读全文
posted @ 2018-08-29 19:30 lshan 阅读(136) 评论(0) 推荐(0)
摘要: 1.在controller 上加上 @CrossOrigin(origins = {"http://localhost:7777", "http://someserver:8080"}) eg:localhost 意思是允许本地跨域访问 7777:允许访问的端口号 阅读全文
posted @ 2018-08-28 20:22 lshan 阅读(3055) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/h--d/p/7555119.html 阅读全文
posted @ 2018-08-28 13:42 lshan 阅读(177) 评论(0) 推荐(0)
摘要: 发现与之前使用的有些不同 参考:https://www.cnblogs.com/h--d/p/6735110.html 阅读全文
posted @ 2018-08-28 12:16 lshan 阅读(140) 评论(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 阅读(8619) 评论(0) 推荐(0)
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 89 下一页