摘要: 查询性能优化 使用 Explain 进行分析 Explain 用来分析 SELECT 查询语句,开发人员可以通过分析 Explain 结果来优化查询语句。 比较重要的字段有: select_type : 查询类型,有简单查询simple、联合查询union、子查询等 key : 使用的索引 rows 阅读全文
posted @ 2020-08-05 17:34 然某 阅读(77) 评论(0) 推荐(0)
摘要: 1 select distinct s.id 2 from S s 3 join T t on s.id=t.it 4 where t.name = "ranmou" 5 group by t.mobile 6 having count(*)>2 7 order by s.create_time 8 阅读全文
posted @ 2020-08-05 17:18 然某 阅读(84) 评论(0) 推荐(0)
摘要: Spring的三大模块: SpringBoot(构建),Spring Cloud(协调),Spring Cloud Data Flow(连接) Spring Cloud是一系列框架的有序集合。它利用Spring Boot的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册、配置中心、消息 阅读全文
posted @ 2020-08-05 14:23 然某 阅读(245) 评论(0) 推荐(0)
摘要: 工具 开发工具:IDEA,更懂你。 浏览器:Chrome。 bug 分析工具:Java 自带的jdb、jinfo、jps、jstack、jmap、jstat、jconsole、jvisualvm 等,也有商用 JProfiler,还有动态跟踪的btrace 等。 对于性能分析工具,我建议你掌握两款 阅读全文
posted @ 2020-08-05 11:23 然某 阅读(84) 评论(0) 推荐(0)
摘要: 使用maven-update整个工程,右击父工程名 >Maven >Update Project 打包和发布 打包,右击父工程名 test-hd-parent >Run As >Maven Install 打包web子工程,右击工程名test-hd-www >Run As > Maven Build 阅读全文
posted @ 2020-08-05 10:57 然某 阅读(343) 评论(0) 推荐(0)