摘要: 一 说明 Actuator 的定义 actuator 是一个制造术语,指的是用于移动或控制某物的机械装置。执行器可以通过一个小的变化产生大量的运动。 要将 actuator 添加到基于 Maven 的项目,请添加以下“Starter”依赖项: Endpoints Actuator endpoints 阅读全文
posted @ 2019-10-29 23:50 天宇轩-王 阅读(1594) 评论(0) 推荐(4) 编辑
摘要: 1、日志框架 小张开发一个大型系统,他想记录日志然后查看问题; 1、System.out.println("");将关键数据打印在控制台;去掉?写在一个文件? 2、框架来记录系统的一些运行时信息;日志框架 ; zhanglogging.jar; 3、高大上的几个功能?异步模式?自动归档?xxxx? 阅读全文
posted @ 2019-10-29 21:59 天宇轩-王 阅读(225) 评论(0) 推荐(3) 编辑
摘要: 本文主要讲与Boot整合,后面会详细讲解Logback 官方文档 ConsoleAppender 如 name 所示,附加在 console 上,或者更准确地说是 System.out 或 System.err,前者是默认目标。 ConsoleAppender格式 events 借助用户指定的编码器 阅读全文
posted @ 2019-10-29 21:40 天宇轩-王 阅读(631) 评论(0) 推荐(4) 编辑
摘要: 注:详细请看2.X博客中,3.X直接上代码。 建议装一个MybatisX插件,可以在Mapper和Xml来回切换 pom.xml pom.xml 配置类 @Configuration @MapperScan("com.mp.pagination.mapper") public class Mybat 阅读全文
posted @ 2019-10-29 20:01 天宇轩-王 阅读(970) 评论(0) 推荐(3) 编辑
摘要: pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency 阅读全文
posted @ 2019-10-29 15:19 天宇轩-王 阅读(1993) 评论(0) 推荐(3) 编辑
摘要: 数据库脚本 DELETE FROM user; ​ INSERT INTO user (id, name, age, email) VALUES (1, 'Jone', 18, 'test1@baomidou.com'), (2, 'Jack', 20, 'test2@baomidou.com'), 阅读全文
posted @ 2019-10-29 14:32 天宇轩-王 阅读(2337) 评论(0) 推荐(2) 编辑
摘要: pom.xml 1 <dependencies> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter</artifactId> 5 </dependency> 6 阅读全文
posted @ 2019-10-29 12:14 天宇轩-王 阅读(929) 评论(0) 推荐(3) 编辑
摘要: 安装H2数据库,为后面mybatisplus3J集成做铺垫 下载jar包 https://pan.baidu.com/s/1tPZQH5tum1CheDxumcN24g 运行jar包 说明:TCP的是用来当url的,Web端口是页面登陆的 测试 192.168.180.115:8082 sa的是默认 阅读全文
posted @ 2019-10-29 11:05 天宇轩-王 阅读(1888) 评论(3) 推荐(3) 编辑