2019年5月12日
摘要: /** * Springboot捕获异常类 */ @RestControllerAdvice(basePackages = "com.example.demo.controller")//切面 public class GlobalExceptionHandler { @ExceptionHandler(RuntimeException.class)//拦截的错误 @Res... 阅读全文
posted @ 2019-05-12 18:33 微笑的蜗牛 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: SpringBoot第一种启动方式 SpringBoot第二种启动方式 SpringBoot第三种启动方式 阅读全文
posted @ 2019-05-12 18:28 微笑的蜗牛 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 什么是SpringBoot? SpringBoot是一个快速整合的第三方框架,简化了XML配置完全采用注解化、内置http服务器(Jetty和Tomcat),最终以java应用程序进行执行。 SpringBoot和SpringCloud的关系: SpringCloud是一套完整的微服务解决框架,在为 阅读全文
posted @ 2019-05-12 18:22 微笑的蜗牛 阅读(735) 评论(0) 推荐(0) 编辑
  2019年5月11日
摘要: /* * 智能机浏览器版本信息: * */var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return {// 移动终端浏览器版本信息 trident: 阅读全文
posted @ 2019-05-11 18:48 微笑的蜗牛 阅读(199) 评论(0) 推荐(0) 编辑