| <dependency> |
| <groupId>com.baomidou</groupId> |
| <artifactId>mybatis-plus-boot-starter</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>p6spy</groupId> |
| <artifactId>p6spy</artifactId> |
| </dependency> |
| modulelist=com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory |
| |
| logMessageFormat=com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger |
| |
| appender=com.baomidou.mybatisplus.extension.p6spy.StdoutLogger |
| |
| |
| |
| deregisterdrivers=true |
| |
| useprefix=true |
| |
| excludecategories=info,debug,result,commit,resultset |
| |
| dateformat=yyyy-MM-dd HH:mm:ss |
| |
| |
| |
| outagedetection=true |
| |
| outagedetectioninterval=2 |
| @Configuration |
| public class MybatisPlusConfig { |
| |
| |
| |
| |
| |
| |
| |
| } |
| @SpringBootTest |
| public class PerformanceTest { |
| |
| @Autowired |
| private StudentMapper studentMapper; |
| |
| @Test |
| public void test(){ |
| studentMapper.selectList(new QueryWrapper<>()); |
| } |
| |
| } |
| Consume Time:2 ms 2022-07-21 08:56:49 |
| Execute SQL:DROP TABLE IF EXISTS student |
| |
| Consume Time:6 ms 2022-07-21 08:56:49 |
| Execute SQL:CREATE TABLE student ( id BIGINT (20) NOT NULL COMMENT '主键ID', name VARCHAR(30) NULL DEFAULT NULL COMMENT '姓名', age INT (11) NULL DEFAULT NULL COMMENT '年龄', PRIMARY KEY (id) ) |
| |
| Consume Time:1 ms 2022-07-21 08:56:49 |
| Execute SQL:DELETE FROM student |
| |
| Consume Time:1 ms 2022-07-21 08:56:49 |
| Execute SQL:INSERT INTO student (id, name, age) VALUES (1, 'Jone', 18),(2, 'Jack', 20),(3, 'Tom', 28), (4, 'Sandy', 21),(5, 'Billie', 24) |
| |
| _ _ |_ _ _|_. ___ _ | _ |
| | | |\/|_)(_| | |_\ |_)||_|_\ |
| / | |
| 3.5.2 |
| 2022-07-21 08:56:50.000 INFO 12328 |
| Consume Time:2 ms 2022-07-21 08:56:50 |
| Execute SQL:SELECT id,name,age FROM student |
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
· 提示词工程——AI应用必不可少的技术