{"id":510,"date":"2023-05-28T01:18:51","date_gmt":"2023-05-27T17:18:51","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=510"},"modified":"2023-05-28T01:19:03","modified_gmt":"2023-05-27T17:19:03","slug":"springboot%e5%9b%9b%e5%a4%a7%e6%a0%b8%e5%bf%83%e7%bb%84%e4%bb%b6%ef%bc%8c%e8%bf%98%e6%9c%89%e4%ba%ba%e4%b8%8d%e7%9f%a5%e9%81%93%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/springboot%e5%9b%9b%e5%a4%a7%e6%a0%b8%e5%bf%83%e7%bb%84%e4%bb%b6%ef%bc%8c%e8%bf%98%e6%9c%89%e4%ba%ba%e4%b8%8d%e7%9f%a5%e9%81%93%ef%bc%9f\/","title":{"rendered":"SpringBoot\u56db\u5927\u6838\u5fc3\u7ec4\u4ef6\uff0c\u8fd8\u6709\u4eba\u4e0d\u77e5\u9053\uff1f"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<h2 style=\"margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 1.3em; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; text-align: left; white-space: normal; outline: 0px; max-width: 100%; border-bottom: 2px solid #ef7060; visibility: visible; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"margin-right: 3px; padding: 3px 10px 1px; outline: 0px; max-width: 100%; display: inline-block; background: #ef7060; color: #ffffff; border-top-right-radius: 3px; border-top-left-radius: 3px; visibility: visible; box-sizing: border-box !important; overflow-wrap: break-word !important;\">1. Spring\u00a0BootStarter<\/span><\/h2>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal; visibility: visible;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">1.1 Starter\u7684\u5e94\u7528\u793a\u4f8b<\/h4>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left; visibility: visible;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; visibility: visible;\"><span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-thymeleaf<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/><br style=\"outline: 0px; visibility: visible;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">groupId<\/span>&gt;<\/span>org.mybatis.spring.boot<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">artifactId<\/span>&gt;<\/span>mybatis-spring-boot-starter<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">version<\/span>&gt;<\/span>1.3.2<span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">version<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px; visibility: visible;\">&lt;\/<span style=\"outline: 0px; line-height: 26px; visibility: visible;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px; visibility: visible;\" \/><\/code><\/pre>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5728\u6211\u4eec\u7684Spring Boot\u9879\u76ee\u79cd\u7684POM\u6587\u4ef6\u4e2d\u603b\u4f1a\u770b\u5230\u8fd9\u4e24\u79cd\u4f9d\u8d56\uff1a<code style=\"margin-right: 2px; margin-left: 2px; padding: 3px 5px; outline: 0px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f8f5ec; color: #ff3502; line-height: 1.5; font-size: 14.4px; border-radius: 2px; visibility: visible;\">spring-boot-starter-xxx<\/code>\u00a0\u548c\u00a0<code style=\"margin-right: 2px; margin-left: 2px; padding: 3px 5px; outline: 0px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f8f5ec; color: #ff3502; line-height: 1.5; font-size: 14.4px; border-radius: 2px; visibility: visible;\">xxx-spring-boot-starter<\/code>\u3002<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8fd9\u5c31\u662fspring boot\u7684\u56db\u5927\u7ec4\u4ef6\u4e4b\u4e00\u7684starter\u3002<\/p>\n<h5 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">a\u3001spring-boot-starter-thymeleaf<\/h5>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 620px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227882.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.2854838709677419\" data-type=\"png\" data-w=\"620\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 620px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227882.png\" data-ratio=\"0.2854838709677419\" data-type=\"png\" data-w=\"620\" \/><\/noscript><\/figure>\n<h5 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">b\u3001mybatis-spring-boot-starter<\/h5>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 638px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227524.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.3683385579937304\" data-type=\"png\" data-w=\"638\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 638px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227524.png\" data-ratio=\"0.3683385579937304\" data-type=\"png\" data-w=\"638\" \/><\/noscript><\/figure>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4e24\u79cdstarter\u7684\u533a\u522b\u5c31\u662f\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px; margin-bottom: 8px; padding-left: 25px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">\u5b98\u65b9\u63d0\u4f9b\u7684starter\u662f\u8fd9\u6837\u7684\uff1a<code style=\"margin-right: 2px; margin-left: 2px; padding: 3px 5px; outline: 0px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f8f5ec; color: #ff3502; line-height: 1.5; font-size: 14.4px; border-radius: 2px;\">spring-boot-starter-xxx<\/code><\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">\u975e\u5b98\u65b9\u7684starter\u662f\u8fd9\u6837\u7684\uff1a<code style=\"margin-right: 2px; margin-left: 2px; padding: 3px 5px; outline: 0px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f8f5ec; color: #ff3502; line-height: 1.5; font-size: 14.4px; border-radius: 2px;\">xxx-spring-boot-starter<\/code><\/section>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5176\u4e2dxxx\u5c31\u662f\u6211\u4eec\u60f3\u8981\u4f9d\u8d56\u7684\u7ec4\u4ef6\u6216\u8005jar\u5305\u3002\u4e0a\u4f8b\u5c31\u662f\u6211\u4eecspring boot\u7528\u6765\u5f15\u5165thymeleaf\u5f15\u64ce\u548cmybatis\u6846\u67b6\u6240\u914d\u7f6e\u7684\u4f9d\u8d56\u3002\u5f15\u5165\u4e4b\u540e\u901a\u8fc7\u7b80\u5355\u7684\u7ea6\u5b9a\u914d\u7f6e\u5c31\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u3002\u6bd4\u5982\uff1a<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">Thymeleaf\u5f15\u64ce\u7ea6\u5b9a\u914d\u7f6e\uff1a<\/strong><\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\"><span style=\"outline: 0px; color: #75715e; line-height: 26px;\">##\u524d\u7aef\u5f15\u64ce\u914d\u7f6e<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; line-height: 26px;\">spring:<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">thymeleaf:<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">enabled:<\/span>\u00a0<span style=\"outline: 0px; color: #f92672; font-weight: bold; line-height: 26px;\">true<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">servlet:<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">content-type:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">text\/html<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">mode:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">HTML<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">##\u00a0\u9875\u9762\u524d\u7f00<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">prefix:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">classpath:\/templates\/<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">##\u00a0\u540e\u7f00<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">suffix:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">.html<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">Mybatis\u7ea6\u5b9a\u914d\u7f6e\uff1a<\/strong><\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\"><span style=\"outline: 0px; line-height: 26px;\">mybatis:<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">mapper-locations:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">classpath:mapper\/*.xml<\/span>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">#\u6ce8\u610f\uff1a\u4e00\u5b9a\u8981\u5bf9\u5e94mapper\u6620\u5c04xml\u6587\u4ef6\u7684\u6240\u5728\u8def\u5f84<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">type-aliases-package:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">com.hi.ld.vo.system<\/span>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">#\u00a0\u6ce8\u610f\uff1a\u5bf9\u5e94\u5b9e\u4f53\u7c7b\u7684\u8def\u5f84<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">configuration:<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">log-impl:<\/span>\u00a0<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">org.apache.ibatis.logging.stdout.StdOutImpl<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4e0b\u9762\u8ba9\u6211\u4eec\u6765\u770b\u770b\u4ee5\u524d\u600e\u4e48\u914d\u7f6ethymeleaf\u3002\u5173\u4e8espringboot\u66f4\u591a\u5185\u5bb9\uff1ahttps:\/\/www.yoodb.com\/spring\/springboot\/springboot-starter.html<\/p>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">1.2 Spring Boot\u4e4b\u524d\u7684Thymeleaf\u548cMybatis\u5e94\u7528<\/h4>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5e9f\u8bdd\u4e0d\u591a\u8bf4\uff0c\u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a<\/p>\n<h5 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">1.2.1 Thymeleaf\u914d\u7f6e<\/h5>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">a. \u6dfb\u52a0\u5bf9\u5e94\u4f9d\u8d56\uff1a<\/strong><\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\"><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span>org.thymeleaf<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span>thymeleaf-spring5<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">version<\/span>&gt;<\/span>3.0.11.RELEASE<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">version<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span>org.thymeleaf.extras<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span>thymeleaf-extras-java8time<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">version<\/span>&gt;<\/span>3.0.4.RELEASE<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">version<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">b. bean\u914d\u7f6e<\/strong><\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\"><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">id<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateResolver\"<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">class<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"org.thymeleaf.templateresolver.ServletContextTemplateResolver\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"prefix\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"\/WEB-INF\/templates\/\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"suffix\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\".html\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateMode\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"HTML5\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">id<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateEngine\"<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; line-height: 26px;\">class<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"org.thymeleaf.spring4.SpringTemplateEngine\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateResolver\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">ref<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateResolver\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">class<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"org.thymeleaf.spring4.view.ThymeleafViewResolver\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateEngine\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">ref<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"templateEngine\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<h5 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">1.2.2 Mybatis\u914d\u7f6e<\/h5>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">a. \u6dfb\u52a0\u5bf9\u5e94\u4f9d\u8d56\uff1a<\/strong><\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\">\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-jdbc<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span>org.mybatis<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span>mybatis<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span>org.mybatis<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span>mybatis-spring<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">b. bean\u914d\u7f6e<\/strong><\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4e0b\u9762\u7684\u7b2c3\uff0c 4\u6b65\u9aa4\u5c31\u662fMybatis\u76f8\u5173\u914d\u7f6e\u3002\u7b2c\u4e00\u6b65\u662f\u5f15\u5165\u8d44\u6e90\u914d\u7f6e\u3002\u7b2c\u4e8c\u6b65\u662f\u914d\u7f6e\u6570\u636e\u6e90\u3002\u53e6\u5916\uff0c\u63a8\u8350\u516c\u4f17\u53f7Java\u7cbe\u9009\uff0c\u56de\u590djava\u9762\u8bd5\uff0c\u83b7\u53d6\u5728\u7ebf\u9762\u8bd5\u8d44\u6599\uff0c\u652f\u6301\u968f\u65f6\u968f\u5730\u5237\u9898\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\"><span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;?xml\u00a0version=\"1.0\"\u00a0encoding=\"UTF-8\"?&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">beans<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">xmlns<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"http:\/\/www.springframework.org\/schema\/beans\"<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; line-height: 26px;\">xmlns:xsi<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">xmlns:context<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"http:\/\/www.springframework.org\/schema\/context\"<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; line-height: 26px;\">xsi:schemaLocation<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"http:\/\/www.springframework.org\/schema\/beans<br style=\"outline: 0px;\" \/>\u00a0http:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd<br style=\"outline: 0px;\" \/>\u00a0http:\/\/www.springframework.org\/schema\/context<br style=\"outline: 0px;\" \/>\u00a0http:\/\/www.springframework.org\/schema\/context\/spring-context.xsd\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u914d\u7f6e\u6574\u5408mybatis\u8fc7\u7a0b\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!-- 1.\u914d\u7f6e\u6570\u636e\u5e93\u76f8\u5173\u53c2\u6570properties\u7684\u5c5e\u6027\uff1a${url}\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">context:property-placeholder<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">location<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"classpath:jdbc.properties\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a02.\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">id<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"dataSource\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">class<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"com.mchange.v2.c3p0.ComboPooledDataSource\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u914d\u7f6e\u8fde\u63a5\u6c60\u5c5e\u6027\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"driverClass\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"${jdbc.driver}\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"jdbcUrl\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"${jdbc.url}\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"user\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"${jdbc.username}\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"password\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"${jdbc.password}\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0c3p0\u8fde\u63a5\u6c60\u7684\u79c1\u6709\u5c5e\u6027\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"maxPoolSize\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"30\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"minPoolSize\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"10\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u5173\u95ed\u8fde\u63a5\u540e\u4e0d\u81ea\u52a8commit\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"autoCommitOnClose\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"false\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u83b7\u53d6\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"checkoutTimeout\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"10000\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u5f53\u83b7\u53d6\u8fde\u63a5\u5931\u8d25\u91cd\u8bd5\u6b21\u6570\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"acquireRetryAttempts\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"2\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a03.\u914d\u7f6eSqlSessionFactory\u5bf9\u8c61\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">id<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"sqlSessionFactory\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">class<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"org.mybatis.spring.SqlSessionFactoryBean\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u6ce8\u5165\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"dataSource\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">ref<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"dataSource\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u914d\u7f6eMyBaties\u5168\u5c40\u914d\u7f6e\u6587\u4ef6:mybatis-config.xml\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"configLocation\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"classpath:mybatis-config.xml\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u626b\u63cfentity\u5305\u00a0\u4f7f\u7528\u522b\u540d\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"typeAliasesPackage\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"com.soecode.lyf.entity\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u626b\u63cfsql\u914d\u7f6e\u6587\u4ef6:mapper\u9700\u8981\u7684xml\u6587\u4ef6\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"mapperLocations\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"classpath:mapper\/*.xml\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a04.\u914d\u7f6e\u626b\u63cfDao\u63a5\u53e3\u5305\uff0c\u52a8\u6001\u5b9e\u73b0Dao\u63a5\u53e3\uff0c\u6ce8\u5165\u5230spring\u5bb9\u5668\u4e2d\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">class<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"org.mybatis.spring.mapper.MapperScannerConfigurer\"<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u6ce8\u5165sqlSessionFactory\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"sqlSessionFactoryBeanName\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"sqlSessionFactory\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">&lt;!--\u00a0\u7ed9\u51fa\u9700\u8981\u626b\u63cfDao\u63a5\u53e3\u5305\u00a0--&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">property<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">name<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"basePackage\"<\/span>\u00a0<span style=\"outline: 0px; line-height: 26px;\">value<\/span>=<span style=\"outline: 0px; color: #a6e22e; line-height: 26px;\">\"com.soecode.lyf.dao\"<\/span>\u00a0\/&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">bean<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">beans<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<h6 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">1.2.3 \u5c0f\u7ed3<\/h6>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">a\u3001Starter \u5e2e\u6211\u4eec\u5c01\u88c5\u597d\u4e86\u6240\u6709\u9700\u8981\u7684\u4f9d\u8d56,\u907f\u514d\u6211\u4eec\u81ea\u5df1\u6dfb\u52a0\u5bfc\u81f4\u7684\u4e00\u4e9bJar\u5305\u51b2\u7a81\u6216\u8005\u7f3a\u5c11\u5305\u7684\u60c5\u51b5\uff1b<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">b\u3001Starter\u5e2e\u6211\u4eec\u81ea\u52a8\u6ce8\u5165\u4e86\u9700\u8981\u7684Bean\u5b9e\u4f8b\u5230Spring \u5bb9\u5668\u4e2d\uff0c\u4e0d\u9700\u8981\u6211\u4eec\u624b\u52a8\u914d\u7f6e\uff08\u8fd9\u4e2a\u53ef\u4ee5\u8bf4\u662fstarter\u5e72\u7684\uff0c\u5b9e\u9645\u4e0a\u5e76\u4e0d\u662f\uff0c\u8fd9\u91cc\u57cb\u4e2a\u5751\uff0c\u4e0b\u9762\u89e3\u7b54\uff09\uff1b<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6240\u4ee5: starter\u5305\u7684\u5185\u5bb9\u5c31\u662fpom\u6587\u4ef6\uff0c\u5c31\u662f\u4e00\u4e2a\u4f9d\u8d56\u4f20\u9012\u5305\u3002<\/p>\n<h2 style=\"margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 1.3em; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; text-align: left; white-space: normal; outline: 0px; max-width: 100%; border-bottom: 2px solid #ef7060; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"margin-right: 3px; padding: 3px 10px 1px; outline: 0px; max-width: 100%; display: inline-block; background: #ef7060; color: #ffffff; border-top-right-radius: 3px; border-top-left-radius: 3px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">2. Spring\u00a0boot Autoconfigure<\/span><\/h2>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">2.1 autoconfigure \u7b80\u4ecb<\/h4>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">autoconfigure\u5728\u6211\u4eec\u7684\u5f00\u53d1\u4e2d\u5e76\u4e0d\u4f1a\u88ab\u611f\u77e5\uff0c\u56e0\u4e3a\u5b83\u662f\u5b58\u5728\u4e0e\u6211\u4eec\u7684starter\u4e2d\u7684\u3002\u6240\u4ee5\u6211\u4eec\u7684\u6bcf\u4e2astarter\u90fd\u662f\u4f9d\u8d56autoconfigure\u7684\uff1a<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010228389.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.6407407407407407\" data-type=\"png\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010228389.png\" data-ratio=\"0.6407407407407407\" data-type=\"png\" data-w=\"1080\" \/><\/noscript><\/figure>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5f53\u7136\u6211\u4eec\u4e5f\u53ef\u4ee5\u628aautoconfig\u7684\u5185\u5bb9\u76f4\u63a5\u653e\u5728starter\u5305\u91cc\u8fb9\u3002<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">a. spring-boot-autoconfigure\uff1a<\/strong><\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6ce8\u610f\uff1a\u8fd9\u91cc\u6709\u4e2a\u70b9\uff0c\u5c31\u662f\u5b98\u7f51\u63d0\u4f9b\u7684configure\u5927\u591a\u6570\u5728spring-boot-autoconfigure\u5305\u91cc\u8fb9\uff0c\u5e76\u6ca1\u6709\u5355\u72ec\u521b\u5efa\u65b0\u5305\u3002<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 616px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010232560.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.2353896103896104\" data-type=\"png\" data-w=\"616\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 616px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010232560.png\" data-ratio=\"0.2353896103896104\" data-type=\"png\" data-w=\"616\" \/><\/noscript><\/figure>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong style=\"outline: 0px; color: #ff3502; line-height: 1.5;\">b\u3001mybatis-spring-boot-autoconfigure<\/strong><\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 655px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010233365.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.35419847328244275\" data-type=\"png\" data-w=\"655\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: 655px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010233365.png\" data-ratio=\"0.35419847328244275\" data-type=\"png\" data-w=\"655\" \/><\/noscript><\/figure>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">2.2 \u5c0f\u7ed3<\/h4>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">autoconfigure\u5185\u5bb9\u662f\u914d\u7f6eBean\u5b9e\u4f8b\u5230Spring\u5bb9\u5668\u7684\u5b9e\u9645\u4ee3\u7801\u5b9e\u73b0\u5305\uff0c\u7136\u540e\u63d0\u4f9b\u7ed9starter\u4f9d\u8d56\u3002\u6240\u4ee5\u8bf41.2.3\u4e2d\u7684b\u9879\u6240\u8bf4\u7684\u914d\u7f6eBean\u5b9e\u4f8b\u5230Spring\u5bb9\u5668\u4e2d\u5b9e\u9645\u662fautoconfigure\u505a\u7684\uff0c\u56e0\u4e3a\u662fstarter\u4f9d\u8d56\u5b83\uff0c\u6240\u4ee5\u4e5f\u53ef\u4ee5\u8bf4\u662fstarter\u5e72\u7684\u3002<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6240\u4ee5\uff1aautocinfigure\u662fstarter\u4f53\u73b0\u51fa\u6765\u7684\u80fd\u529b\u7684\u4ee3\u7801\u5b9e\u73b0<\/p>\n<h2 style=\"margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 1.3em; white-space: normal; outline: 0px; max-width: 100%; letter-spacing: 0.4352px; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; text-align: left; background-color: #ffffff; border-bottom: 2px solid #ef7060; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"margin-right: 3px; padding: 3px 10px 1px; outline: 0px; max-width: 100%; display: inline-block; background: #ef7060; color: #ffffff; border-top-right-radius: 3px; border-top-left-radius: 3px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">3\u3001Spring Boot\u00a0CLI<\/span><\/h2>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">Spring Boot CLI\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u4f7f\u7528Spring Boot\u7684\u5ba2\u6237\u7aef\u5de5\u5177\uff1b\u4e3b\u8981\u529f\u80fd\u5982\u4e0b\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px; margin-bottom: 8px; padding-left: 25px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">\u8fd0\u884cgroovy\u811a\u672c =&gt; \u5b98\u7f512.1<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">\u6253\u5305groovy\u6587\u4ef6\u5230jar =&gt; \u5b98\u7f512.3<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">\u521d\u59cb\u5316Spring Boot\u9879\u76ee =&gt; \u5b98\u7f512.4<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">\u5176\u4ed6<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5148\u4e0a\u4e2a\u5b98\u7f51\u6587\u6863\uff1a<\/p>\n<blockquote style=\"margin-top: 20px; margin-bottom: 20px; padding-top: 1px; padding-bottom: 1px; outline: 0px; border-left-color: #9e9e9e; color: #5b5b5b; font-size: 0.9em; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal; border-top: none; border-right: none; border-bottom: none; overflow: auto; background: rgba(158, 158, 158, 0.1);\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"margin: 10px; outline: 0px; color: #3f3f3f; line-height: 1.5; font-size: 16px;\"><span style=\"outline: 0px; font-size: 14px;\">https:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/html\/spring-boot-cli.html<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u56e0\u4e3a\u8fd9\u4e2a\u6211\u4eec\u7528\u7684\u6bd4\u8f83\u5c11\uff0c\u6240\u4ee5\u5c31\u4e0d\u591a\u8d58\u8ff0\u4e86\u3002\u4e2a\u4eba\u611f\u89c9\u6bd4\u8f83\u6d41\u813e\u7684\u529f\u80fd\u5c31\u662f\u547d\u4ee4\u884c\u76f4\u63a5\u6267\u884cgroovy\u811a\u672c\u4e86\u3002<\/p>\n<h2 style=\"margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 1.3em; white-space: normal; outline: 0px; max-width: 100%; letter-spacing: 0.4352px; color: #000000; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; text-align: left; background-color: #ffffff; border-bottom: 2px solid #ef7060; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"margin-right: 3px; padding: 3px 10px 1px; outline: 0px; max-width: 100%; display: inline-block; background: #ef7060; color: #ffffff; border-top-right-radius: 3px; border-top-left-radius: 3px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">4\u3001Spring Boot\u00a0Actuator<\/span><\/h2>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">actuator\u662fSpring Boot\u7684\u76d1\u63a7\u63d2\u4ef6\uff0c\u672c\u8eab\u63d0\u4f9b\u4e86\u5f88\u591a\u63a5\u53e3\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u9879\u76ee\u7684\u5404\u9879\u8fd0\u884c\u72b6\u6001\u6307\u6807\u3002<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5b98\u7f51\u6587\u6863\uff1a<\/p>\n<blockquote style=\"margin-top: 20px; margin-bottom: 20px; padding-top: 1px; padding-bottom: 1px; outline: 0px; border-left-color: #9e9e9e; color: #5b5b5b; font-size: 0.9em; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal; border-top: none; border-right: none; border-bottom: none; overflow: auto; background: rgba(158, 158, 158, 0.1);\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"margin: 10px; outline: 0px; color: #3f3f3f; line-height: 1.5; font-size: 16px;\"><span style=\"outline: 0px; font-size: 14px;\">https:\/\/docs.spring.io\/spring-boot\/docs\/2.4.0\/reference\/html\/production-ready-features.html#production-ready<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u540d\u8bcd\u89e3\u91ca\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px; margin-bottom: 8px; padding-left: 25px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px; margin-bottom: 5px; outline: 0px; line-height: 26px; color: #010101;\">Endpoints: \u9700\u8981\u76d1\u63a7\u7684\u7aef\u70b9\u3002\u53c2\u8003\u5b98\u7f51\u7b2c\u4e8c\u8282\u5b98\u7f51\u6587\u6863<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u53ef\u7528\u7684\u7aef\u70b9\uff1a<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010234647.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.9896800825593395\" data-type=\"png\" data-w=\"969\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010234647.png\" data-ratio=\"0.9896800825593395\" data-type=\"png\" data-w=\"969\" \/><\/noscript><\/figure>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010237198.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.886\" data-type=\"png\" data-w=\"1000\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010237198.png\" data-ratio=\"0.886\" data-type=\"png\" data-w=\"1000\" \/><\/noscript><\/figure>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4e0b\u65b9\u7684\u662fweb\u5de5\u7a0b\u7684\u7aef\u70b9\u3002<\/p>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">4.1 \u6dfb\u52a0\u4f9d\u8d56<\/h4>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\"><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">groupId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-actuator<span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">artifactId<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><span style=\"outline: 0px; color: #f92672; line-height: 26px;\">&lt;\/<span style=\"outline: 0px; line-height: 26px;\">dependency<\/span>&gt;<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">4.2 \u914d\u7f6e\u9700\u8981\u5f00\u542f\u76d1\u63a7\u7684\u7aef\u70b9<\/h4>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-size: 16px; letter-spacing: normal; text-align: left;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px; outline: 0px; overflow-x: auto; background: #272822; color: #dddddd; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px;\">management:<br style=\"outline: 0px;\" \/>\u00a0\u00a0endpoint:<br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0health:\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">##\u00a0\u5f00\u542f\u5065\u5eb7\u76d1\u63a7\u7aef\u70b9<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0enabled:\u00a0<span style=\"outline: 0px; color: #f92672; font-weight: bold; line-height: 26px;\">true<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0beans:\u00a0<span style=\"outline: 0px; color: #75715e; line-height: 26px;\">##\u00a0\u5f00\u542fBean\u5b9e\u4f8b\u76d1\u63a7\u7aef\u70b9<\/span><br style=\"outline: 0px;\" \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0enabled:\u00a0<span style=\"outline: 0px; color: #f92672; font-weight: bold; line-height: 26px;\">true<\/span><br style=\"outline: 0px;\" \/><\/code><\/pre>\n<h4 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">4.3 \u542f\u52a8\u670d\u52a1\u5e76\u9a8c\u8bc1<\/h4>\n<h5 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">4.3.1 \u542f\u52a8\u7ed3\u679c<\/h5>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010241884.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.20925925925925926\" data-type=\"png\" data-w=\"1080\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010241884.png\" data-ratio=\"0.20925925925925926\" data-type=\"png\" data-w=\"1080\" \/><\/noscript><\/figure>\n<h5 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">4.3.2 \u67e5\u770b\u5404\u4e2a\u76d1\u63a7\u4fe1\u606f<\/h5>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6d4f\u89c8\u5668\u8bbf\u95ee\uff08\u67e5\u770b\u76d1\u63a7\u4fe1\u606f\u5730\u5740\uff09\uff1a<code style=\"margin-right: 2px; margin-left: 2px; padding: 3px 5px; outline: 0px; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all; background: #f8f5ec; color: #ff3502; line-height: 1.5; font-size: 14.4px; border-radius: 2px;\">http:\/\/localhost:9500\/actuator<\/code><\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010244948.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"0.7335640138408305\" data-type=\"png\" data-w=\"867\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010244948.png\" data-ratio=\"0.7335640138408305\" data-type=\"png\" data-w=\"867\" \/><\/noscript><\/figure>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u67e5\u770b\u670d\u52a1\u5065\u5eb7\u72b6\u6001\uff1a<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal; display: flex; flex-direction: column; justify-content: center; align-items: center;\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010246240.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-ratio=\"1.075098814229249\" data-type=\"png\" data-w=\"506\" \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"margin-right: auto; margin-left: auto; outline: 0px; display: block; visibility: visible !important; width: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010246240.png\" data-ratio=\"1.075098814229249\" data-type=\"png\" data-w=\"506\" \/><\/noscript><\/figure>\n<h3 style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; font-weight: bold; font-size: 18px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u603b\u7ed3<\/h3>\n<p style=\"margin-top: 20px; margin-bottom: 20px; outline: 0px; color: #000000; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: normal; text-align: left; white-space: normal;\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u672c\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86Spring Boot\u7684\u56db\u5927\u7ec4\u4ef6\u7684\u4f5c\u7528\uff0c\u5176\u4e2d\u4e3b\u8981\u662fstarter\u548cautoconfigure\uff0c\u53e6\u5916\u7684CLI\u548cactuator\u7528\u7684\u5e76\u4e0d\u591a\uff0c\u6240\u4ee5\u6ca1\u6709\u4ed4\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<section style=\"margin-bottom: 0px;\" data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"89428\">\n<section style=\"text-align: center; height: 50px;\">\n<section style=\"box-sizing: border-box; width: 48px; height: 48px; color: #ffffff; font-size: 16px; line-height: 48px; display: inline-block; background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010225945.gif'); background-repeat: no-repeat; background-size: 100%; background-position: 0px center; margin-right: auto; margin-left: auto; background-color: #ffffff;\">\n<\/section>\n<section style=\"height: 2px; background-color: #222121; margin-top: -26px; overflow: hidden;\"><\/section>\n<\/section>\n<\/section>\n<section><\/section>\n<p style=\"display: none;\">\n<blockquote><p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7: \u7801\u4e0a\u5c0f\u5eb7<\/p><\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>1. Spring\u00a0BootStarter 1.1 Starter\u7684\u5e94\u7528\u793a\u4f8b &lt;dependency&gt;\u00a0\u00a0\u00a0\u00a0&lt; &#8230;<\/p>\n","protected":false},"author":1,"featured_media":498,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010226990-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227882.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010226990.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010226990.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227882.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010226990.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010226990.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010226990.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227882.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227882.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227524.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010227524.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010228389.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010228389.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010232560.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010232560.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010233365.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010233365.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010234647.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010234647.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010237198.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010237198.png","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010241884.png","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010241884.png","id":"image15"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010244948.png","id":"image16"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010244948.png","id":"image17"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010246240.png","id":"image18"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528010246240.png","id":"image19"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2023-05-27","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":278,"next_post_id":592,"next_post_title":"SpringBoot\u96c6\u6210WebSocket\uff0c\u5b9e\u73b0\u540e\u53f0\u5411\u524d\u7aef\u63a8\u9001\u4fe1\u606f","previous_post_id":309,"previous_post_title":"SpringBoot\u6574\u5408Canal+RabbitMQ\u76d1\u542c\u6570\u636e\u53d8\u66f4~","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/498"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}