资料

properties属性:
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html


http://412887952-qq-com.iteye.com/blog/2291500--系列文章--上
http://www.iteye.com/topic/1144751---------------------系列文章--下
http://412887952-qq-com.iteye.com/?page=7
http://blog.csdn.net/linxingliang/article/details/52324902--系列
http://blog.csdn.net/catoop/article/details/50501664--xilie
http://blog.csdn.net/isea533/article/details/50278205-入门
https://my.oschina.net/wangnian/blog/657207--druid
http://blog.csdn.net/sosfnima/article/details/51993700--系列
http://412887952-qq-com.iteye.com/category/356333--angle
http://blog.csdn.net/kkgbn/article/details/51453765--系列
http://www.cnblogs.com/java-zhao/p/5449152.html-mybatis打印sql
http://aub.iteye.com/blog/1896611--logback系列
http://blog.didispace.com/spring-boot-rabbitmq/---springboot中使用mq
http://blog.didispace.com/--springcloud
http://bbs.springcloud.cn/---中文社区
http://bbs.springcloud.cn/d/2-dd-spring-boot--
http://412887952-qq-com.iteye.com/blog/2344171--群主视频
https://www.gitbook.com/book/qbgbook/spring-boot-reference-guide-zh/details--翻译
http://git.oschina.net/didispace/SpringBoot-Learning---教程
http://blog.didispace.com/----博客
http://blog.csdn.net/yeyincai/article/details/51702059?locationNum=9&fps=1----总结
https://yq.aliyun.com/articles/2322-----admin监控
https://yq.aliyun.com/articles/8302?spm=5176.100239.blogrightarea2322.18.WLP3BJ---注解多数据源
https://yq.aliyun.com/articles/54069?spm=5176.100239.blogcont54068.21.bj5EW7--系列文章
http://www.cnblogs.com/skyblog/p/5127712.html-《7天学会springcloud》
http://blog.csdn.net/qiutongyeluo/article/category/6306088
http://www.cnblogs.com/larryzeal/p/5765945.html-系列
http://blog.csdn.net/forezp/article/details/70148833
http://www.itmuch.com/
https://springcloud.cc/
https://javablog.net/
/**

  • 400 - Bad Request
    /
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    @ExceptionHandler(ConstraintViolationException.class)
    public AjaxResult handleServiceException(ConstraintViolationException e) {
    logger.error("参数验证失败", e);
    Set<ConstraintViolation<?>> violations = e.getConstraintViolations();
    ConstraintViolation<?> violation = violations.iterator().next();
    String message = violation.getMessage();
    return new AjaxResult().failure("parameter:" + message);
    }
    /
    *
  • 500 - Internal Server Error
    */
    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
    @ExceptionHandler(Exception.class)
    public AjaxResult handleException(Exception e) {
    logger.error("通用异常", e);
    return new AjaxResult().failure("通用异常:" + e.getMessage());
    }
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容