2017年9月19日

IDEA 优化开发工具

摘要: 1.实现接口中的方法:alt+enter,或者alt+shift+p。 2. alt+/ 代码快速补全设置: file > settings...( Ctrl+Alt+S ) > keymap > main menu > code > completion > 移除Cycle Expand Word 阅读全文

posted @ 2017-09-19 23:37 whlshot 阅读(137) 评论(0) 推荐(0) 编辑

Spring Boot 请求错误处理

摘要: 方法一:Spring Boot将所有的错误映射到/error,实现ErrorController接口 请求一个错误的地址:localhost:8080/asdf,就会跳转到 error/error.ftl 页面。 方法二:添加自定义的错误页面(前提:没有实现ErrorController接口) 2. 阅读全文

posted @ 2017-09-19 22:49 whlshot 阅读(347) 评论(0) 推荐(0) 编辑

导航