org.springframework.boot spring-boot-devtools true
在 Eclipse 中,保存修改文件会引起 classpath 更新,然后触发应用重启;
在 Intellij IDEA 中,Build > Build Project 有相同效果;或者配置运行时自动构建(不推荐)
7. Developing Web Applications 7.1. The “Spring Web MVC framework” 7.1.11. Error Handling默认地,Spring Boot 提供一个 /error 的映射来处理所有的错误,并且,他被注册为一个 Servlet 容器“全局”错误页面。
对于客户端,返回 JSON;对于浏览器,错误页面 HTML。
如果要自定义错误行为,你可以添加一个解析到 error 的视图。



