摘要:
参考:https://blog.csdn.net/motui/article/details/79012846
阅读全文
posted @ 2018-09-13 11:03
lshan
阅读(114)
推荐(0)
摘要:
1.在resoures下创建resoures/error文件夹 在其中自定义:404.html 403.html 500.html
阅读全文
posted @ 2018-09-02 20:36
lshan
阅读(218)
推荐(0)
摘要:
1.配置session的超时时间 : 在application.prooperties中 server.session.timeout = 600 //以秒为单位,默认最少一分钟 2.配置集群管理session:spring.session.store-type = redis; 支持类型 3. 配
阅读全文
posted @ 2018-09-02 19:43
lshan
阅读(2128)
推荐(0)
摘要:
依赖: 使用:在你要生成接口处加上注解@EnableSwagger2 ,此处是整个项目都要,不建议这么玩, 建议加在controller上 自定义标题:配置:(这个可以不配置) 方法描述: 在方法上加上 @ApiOperation 效果: 参数描述:1. 参数是 包装类 或者模型 如PartDO 在
阅读全文
posted @ 2018-09-01 18:59
lshan
阅读(7277)
推荐(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
阅读(230)
推荐(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
阅读(214)
推荐(0)
摘要:
参考:https://www.cnblogs.com/dunitian/p/5581520.html
阅读全文
posted @ 2018-08-29 22:27
lshan
阅读(177)
推荐(0)
摘要:
方式1: private File transferToFile(MultipartFile multipartFile) { // 选择用缓冲区来实现这个转换即使用java 创建的临时文件 使用 MultipartFile.transferto()方法 。 File file = null; tr
阅读全文
posted @ 2018-08-29 21:33
lshan
阅读(46785)
推荐(3)
摘要:
參考:http://www.cnblogs.com/lihaoyang/p/7348293.html
阅读全文
posted @ 2018-08-29 19:30
lshan
阅读(122)
推荐(0)
摘要:
1.在controller 上加上 @CrossOrigin(origins = {"http://localhost:7777", "http://someserver:8080"}) eg:localhost 意思是允许本地跨域访问 7777:允许访问的端口号
阅读全文
posted @ 2018-08-28 20:22
lshan
阅读(3025)
推荐(0)