{"id":12908,"date":"2023-10-12T17:03:38","date_gmt":"2023-10-12T09:03:38","guid":{"rendered":"https:\/\/92it.top\/?p=12908"},"modified":"2023-10-12T17:03:38","modified_gmt":"2023-10-12T09:03:38","slug":"springboot-resource-%e8%b5%84%e6%ba%90%e6%96%87%e4%bb%b6%e7%9a%84%e6%89%93%e5%8c%85%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=12908","title":{"rendered":"SpringBoot resource \u8d44\u6e90\u6587\u4ef6\u7684\u6253\u5305\u914d\u7f6e\u8be6\u89e3"},"content":{"rendered":"\n<p><strong>\u53d9\u8ff0<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\uff081\uff09\u9ed8\u8ba4\u00a0Spring Boot\u00a0\u9879\u76ee\u7ed3\u6784\uff0c\u8d44\u6e90\u6587\u4ef6\u653e\u7f6e\u5728\u00a0src\/main\/resources\u00a0\u4e2d\uff0c\u6d4b\u8bd5\u7684\u8d44\u6e90\u6587\u4ef6\u5728\u00a0src\/test\/resources\u00a0\u4e2d\u3002<\/p>\n\n\n\n<p><strong>src\/main\/resources\u00a0\u4e0e\u00a0src\/test\/resources\u00a0\u7684\u533a\u522b\uff1a<\/strong><\/p>\n\n\n\n<ul><li>src\/main\/java\u00a0\u91cc\u9762\u7684\u00a0java\u00a0\u6587\u4ef6\u53ea\u80fd\u76f4\u63a5\u52a0\u8f7d\u00a0src\/main\/resources\u00a0\u4e0b\u7684\u8d44\u6e90\uff0c\u4e0d\u80fd\u76f4\u63a5\u52a0\u8f7d\u00a0src\/test\/resources\u00a0\u4e0b\u7684\u8d44\u6e90\uff1b<\/li><li>src\/test\/java\u00a0\u91cc\u9762\u7684\u00a0java\u00a0\u6587\u4ef6\u65e2\u80fd\u52a0\u8f7d\u00a0src\/test\/resources\u00a0\u4e0b\u7684\u8d44\u6e90\uff0c\u53c8\u80fd\u52a0\u8f7d\u00a0src\/main\/resources\u00a0\u4e0b\u7684\u8d44\u6e90\uff0c\u5f53\u4e24\u4e2a\u00a0resources\u00a0\u4e0b\u90fd\u6709\u8981\u52a0\u8f7d\u7684\u540c\u540d\u8d44\u6e90\u65f6\u5019\uff0c\u4f18\u5148\u9009\u62e9\u00a0src\/test\/resources\u00a0\u4e0b\u7684\u8d44\u6e90\u3002<\/li><\/ul>\n\n\n\n<p><strong>src\/main\/resources\u548csrc\/test\/resources\u4e0b\u7684\u8d44\u6e90\u8bfb\u53d6\u65b9\u5f0f<\/strong><\/p>\n\n\n\n<ul><li>\u4e00\u822cmaven\u4f1a\u5c06spring\u5de5\u7a0b\u7f16\u8bd1\u5230target\u6587\u4ef6\u5939\u4e0b\uff0c\/target\/classes\u5c31\u662f\u5176\u6839\u76ee\u5f55\u3002\u800csrc\/main\/resources\u4e0b\u7684\u6587\u4ef6\u88ab\u590d\u5236\u5230\u4e86\u8fd9\u4e2aclasses\u6587\u4ef6\u5939\u4e0b\u3002<\/li><li>maven\u4f1a\u5c06src\/test\/java\u6587\u4ef6\u5939\u4e0b\u7684\u4ee3\u7801\u7f16\u8bd1\u5230target\/test-classes\u6587\u4ef6\u5939\u4e0b\u3002\u540c\u6837\u7684\uff0c\u5982\u679csrc\/test\/resources\u4e0b\u6709\u8d44\u6e90\u6587\u4ef6\u7684\u8bdd\uff0c\u5c31\u590d\u5236\u5230target\/test-classes\u6587\u4ef6\u5939\u4e0b\u3002<\/li><\/ul>\n\n\n\n<ul><li>\u6d4b\u8bd5\u4ee3\u7801\u8fd0\u884c\u65f6\uff0c\u4f18\u5148\u4f7f\u7528test-classes\u6587\u4ef6\u5939\u4e0b\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u5982\u679c\u4e0d\u5b58\u5728\uff0c\u518d\u4f7f\u7528classes\u6587\u4ef6\u5939\u4e0b\u7684\u8d44\u6e90\u6587\u4ef6\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-23.png\" alt=\"\" class=\"wp-image-12909\" width=\"284\" height=\"298\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-23.png 512w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-23-286x300.png 286w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-23-230x242.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-23-350x368.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-23-480x504.png 480w\" sizes=\"(max-width: 284px) 100vw, 284px\" \/><\/figure><\/div>\n\n\n\n<p>\uff082\uff09\u5c06\u9879\u76ee\u6253\u5305\u540e\uff0c\u89e3\u538b\u00a0jar\u00a0\u53ef\u4ee5\u53d1\u73b0\u539f\u5148\u00a0src\/main\/resources\u00a0\u76ee\u5f55\u4e0b\u7684\u8d44\u6e90\u6587\u4ef6\u5df2\u7ecf\u88ab\u6253\u5305\u8fdb\u6765\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24.png\" alt=\"\" class=\"wp-image-12910\" width=\"514\" height=\"161\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24.png 1002w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24-300x95.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24-768x242.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24-830x262.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24-230x73.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24-350x110.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-24-480x151.png 480w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/figure><\/div>\n\n\n\n<p>\u00a0\uff083\uff09\u4f46\u6709\u65f6\u6211\u4eec\u7684\u8d44\u6e90\u6587\u4ef6\u5e76\u4e0d\u4e00\u5b9a\u662f\u653e\u5728\u00a0src\/main\/resources\u00a0\u76ee\u5f55\u4e0b\uff0c\u6bd4\u5982\u6211\u7684\u9879\u76ee\u901a\u5e38\u4f1a\u5c06\u8d44\u6e90\u6587\u4ef6\u653e\u5728\u00a0src\/test\/resources\u00a0\u76ee\u5f55\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u539f\u56e0\uff1a\u6839\u636e\u5b9e\u8df5\u7ecf\u9a8c\u8868\u660e\uff0c\u6d4b\u8bd5\u5b8c\u540e\u7684\u914d\u7f6e\u9879\u662f\u6700\u5b8c\u6574\u7684\uff0c\u4e14\u7ecf\u5e38\u4f1a\u5fd8\u8bb0\u66ff\u6362\u6b63\u5f0f\u7248\u53c2\u6570\uff0c\u56e0\u800c\u9009\u62e9\u5c06\u914d\u7f6e\u6587\u4ef6\u5168\u90e8\u653e\u7f6e\u5728 src\/test\/resources \u76ee\u5f55\u4e0b\u3002 <\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-25.png\" alt=\"\" class=\"wp-image-12912\" width=\"371\" height=\"367\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-25.png 542w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-25-300x297.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-25-230x227.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-25-350x346.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-25-480x475.png 480w\" sizes=\"(max-width: 371px) 100vw, 371px\" \/><\/figure><\/div>\n\n\n\n<p>\uff084\uff09\u53c8\u6bd4\u5982\u00a0mybatis\u00a0\u7684\u00a0mapper.xml\u00a0\u6587\u4ef6\uff0c\u6211\u4eec\u4e60\u60ef\u628a\u5b83\u548c\u00a0Mapper.java\u00a0\u653e\u4e00\u8d77<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-26.png\" alt=\"\" class=\"wp-image-12913\" width=\"335\" height=\"399\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-26.png 594w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-26-252x300.png 252w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-26-230x274.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-26-350x417.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/10\/\u56fe\u7247-26-480x572.png 480w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/figure><\/div>\n\n\n\n<p>\uff085\uff09\u4f46\u4e0a\u9762\u8fd9\u4e24\u79cd\u60c5\u51b5\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u5728\u4f7f\u7528\u00a0maven\u00a0\u6253\u5305\u65f6\u662f\u4e0d\u4f1a\u88ab\u6253\u5305\u8fdb\u00a0jar\u00a0\u7684\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u4fbf\u8981\u6307\u5b9a\u9700\u8981\u6253\u5305\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6709\u5982\u4e0b\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u4f7f\u7528 &lt;resources&gt; \u6807\u7b7e<\/strong><\/p>\n\n\n\n<p>\uff081\uff09&lt;resources>\u00a0\u6807\u7b7e\u4f4d\u4e8e\u00a0&lt;build>\u00a0\u6807\u7b7e\u5185\uff0c\u7528\u4e8e\u6307\u5b9a\u9879\u76ee\u8d44\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u6bd4\u5982\u4e0b\u9762\u914d\u7f6e\u6211\u4eec\u6307\u5b9a\u4e86\u00a0src\/test\/resources\u00a0\u4e5f\u662f\u8d44\u6e90\u6587\u4ef6\u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;build>\n    &lt;plugins>\n        &lt;plugin>\n            &lt;groupId>org.springframework.boot&lt;\/groupId>\n            &lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n        &lt;\/plugin>\n    &lt;\/plugins>\n    &lt;!-- \u91cd\u65b0\u6307\u660e\u8d44\u6e90\u6587\u4ef6\u4f4d\u7f6e -->\n    &lt;resources>\n        &lt;resource>\n            &lt;directory>src\/test\/resources&lt;\/directory>\n        &lt;\/resource>\n        &lt;resource>\n            &lt;directory>src\/main\/resources&lt;\/directory>\n        &lt;\/resource>\n    &lt;\/resources>\n&lt;\/build><\/pre>\n\n\n\n<p>\uff082\uff09\u800c\u5bf9\u4e8e\u5199\u5728\u5305\u4e0b\u7684\u00a0Mapper.xml\u00a0\u6587\u4ef6\uff0c\u6211\u4eec\u5219\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u914d\u7f6e\u6307\u660e\u8d44\u6e90\u6587\u4ef6\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u63d0\u793a\uff1a\u5176\u4e2d **\/* \u8fd9\u6837\u7684\u5199\u6cd5\uff0c\u662f\u4e3a\u4e86\u4fdd\u8bc1\u5404\u7ea7\u5b50\u76ee\u5f55\u4e0b\u7684\u8d44\u6e90\u6587\u4ef6\u88ab\u6253\u5305\u3002 <\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;build>\n    &lt;plugins>\n        &lt;plugin>\n            &lt;groupId>org.springframework.boot&lt;\/groupId>\n            &lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n        &lt;\/plugin>\n    &lt;\/plugins>\n    &lt;!-- \u91cd\u65b0\u6307\u660e\u8d44\u6e90\u6587\u4ef6\u4f4d\u7f6e -->\n    &lt;resources>\n        &lt;resource>\n            &lt;directory>src\/main\/java&lt;\/directory>\n            &lt;includes>\n                &lt;include>**\/*.xml&lt;\/include>\n            &lt;\/includes>\n        &lt;\/resource>\n        &lt;resource>\n            &lt;directory>src\/main\/resources&lt;\/directory>\n        &lt;\/resource>\n    &lt;\/resources>\n&lt;\/build><\/pre>\n\n\n\n<p>\uff083\uff09\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u00a0excludes\u00a0\u6807\u7b7e\u5254\u9664\u4e0d\u9700\u8981\u7684\u8d44\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;build>\n    .......\n    &lt;resources>\n        &lt;resource>\n            &lt;directory>src\/main\/resources&lt;\/directory>\n            &lt;excludes>\n                &lt;exclude>**\/*.properties&lt;\/exclude>\n                &lt;exclude>**\/*.xml&lt;\/exclude>\n            &lt;\/excludes>\n            &lt;filtering>false&lt;\/filtering>\n        &lt;\/resource>\n        &lt;resource>\n            &lt;directory>src\/main\/java&lt;\/directory>\n            &lt;includes>\n                &lt;include>**\/*.properties&lt;\/include>\n                &lt;include>**\/*.xml&lt;\/include>\n            &lt;\/includes>\n            &lt;filtering>false&lt;\/filtering>\n        &lt;\/resource>\n    &lt;\/resources>\n    ......\n&lt;\/build><\/pre>\n\n\n\n<p><strong>\u4f7f\u7528 maven-resources-plugin \u63d2\u4ef6<\/strong><\/p>\n\n\n\n<p>\uff081\uff09\u9664\u4e86\u4f7f\u7528 \u6807\u7b7e\u5916\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528 maven-resources-plugin \u63d2\u4ef6\u5b9e\u73b0\u540c\u6837\u7684\u76ee\u7684\u3002\u6bd4\u5982\u4e0b\u9762\u914d\u7f6e\u628a src\/test\/resources \u76ee\u5f55\u4e0b\u7684\u8d44\u6e90\u6587\u4ef6\u6253\u5305\u5230 classes \u76ee\u5f55\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;build>\n    &lt;plugins>\n        &lt;plugin>\n            &lt;groupId>org.springframework.boot&lt;\/groupId>\n            &lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n        &lt;\/plugin>\n        &lt;plugin>\n            &lt;groupId>org.apache.maven.plugins&lt;\/groupId>\n            &lt;artifactId>maven-resources-plugin&lt;\/artifactId>\n            &lt;executions>\n                &lt;execution>\n                    &lt;id>my-resources&lt;\/id>\n                    &lt;phase>process-resources&lt;\/phase>\n                    &lt;goals>\n                        &lt;goal>copy-resources&lt;\/goal>\n                    &lt;\/goals>\n                    &lt;configuration>\n                        &lt;outputDirectory>${basedir}\/target\/classes&lt;\/outputDirectory>\n                        &lt;resources>\n                            &lt;resource>\n                                &lt;directory>${basedir}\/src\/test\/resources&lt;\/directory>\n                                &lt;includes>\n                                    &lt;include>*.properties&lt;\/include>\n                                    &lt;include>*.xml&lt;\/include>\n                                &lt;\/includes>\n                            &lt;\/resource>\n                        &lt;\/resources>\n                    &lt;\/configuration>\n                &lt;\/execution>\n            &lt;\/executions>\n        &lt;\/plugin>\n    &lt;\/plugins>\n&lt;\/build><\/pre>\n\n\n\n<p>\uff082\uff09\u800c\u5bf9\u4e8e\u5199\u5728\u5305\u4e0b\u7684\u00a0Mapper.xml\u00a0\u6587\u4ef6\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u00a0maven-resources-plugin\u00a0\u63d2\u4ef6\u5c06\u5176\u6253\u5305\u5230\u76f8\u5e94\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;build>\n    &lt;plugins>\n        &lt;plugin>\n            &lt;groupId>org.springframework.boot&lt;\/groupId>\n            &lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n        &lt;\/plugin>\n        &lt;plugin>\n            &lt;groupId>org.apache.maven.plugins&lt;\/groupId>\n            &lt;artifactId>maven-resources-plugin&lt;\/artifactId>\n            &lt;executions>\n                &lt;execution>\n                    &lt;id>copy-xmls&lt;\/id>\n                    &lt;phase>process-sources&lt;\/phase>\n                    &lt;goals>\n                        &lt;goal>copy-resources&lt;\/goal>\n                    &lt;\/goals>\n                    &lt;configuration>\n                        &lt;outputDirectory>${basedir}\/target\/classes&lt;\/outputDirectory>\n                        &lt;resources>\n                            &lt;resource>\n                                &lt;directory>${basedir}\/src\/main\/java&lt;\/directory>\n                                &lt;includes>\n                                    &lt;include>**\/*.xml&lt;\/include>\n                                &lt;\/includes>\n                            &lt;\/resource>\n                        &lt;\/resources>\n                    &lt;\/configuration>\n                &lt;\/execution>\n            &lt;\/executions>\n        &lt;\/plugin>\n    &lt;\/plugins>\n&lt;\/build><\/pre>\n\n\n\n<p>\uff083\uff09\u4f7f\u7528\u00a0maven-resources-plugin\u00a0\u63d2\u4ef6\u65f6\uff0c\u6211\u4eec\u540c\u6837\u53ef\u4ee5\u901a\u8fc7\u00a0excludes\u00a0\u6807\u7b7e\u5254\u9664\u4e0d\u9700\u8981\u7684\u8d44\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;build>\n    &lt;plugins>\n        &lt;plugin>\n            &lt;groupId>org.springframework.boot&lt;\/groupId>\n            &lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n        &lt;\/plugin>\n        &lt;plugin>\n            &lt;groupId>org.apache.maven.plugins&lt;\/groupId>\n            &lt;artifactId>maven-resources-plugin&lt;\/artifactId>\n            &lt;executions>\n                &lt;execution>\n                    &lt;id>my-resources&lt;\/id>\n                    &lt;phase>process-resources&lt;\/phase>\n                    &lt;goals>\n                        &lt;goal>copy-resources&lt;\/goal>\n                    &lt;\/goals>\n                    &lt;configuration>\n                        &lt;outputDirectory>${basedir}\/target\/classes&lt;\/outputDirectory>\n                        &lt;resources>\n                            &lt;resource>\n                                &lt;directory>${basedir}\/src\/test\/resources&lt;\/directory>\n                                &lt;includes>\n                                    &lt;include>**\/*.*&lt;\/include>\n                                &lt;\/includes>\n                                &lt;excludes>\n                                    &lt;exclude>log4j2-spring.xml&lt;\/exclude>\n                                &lt;\/excludes>\n                            &lt;\/resource>\n                        &lt;\/resources>\n                    &lt;\/configuration>\n                &lt;\/execution>\n            &lt;\/executions>\n        &lt;\/plugin>\n    &lt;\/plugins>\n&lt;\/build><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53d9\u8ff0 \uff081\uff09\u9ed8\u8ba4\u00a0Spring Boot\u00a0\u9879\u76ee\u7ed3\u6784\uff0c\u8d44\u6e90\u6587\u4ef6\u653e\u7f6e\u5728\u00a0src\/main\/resources\u00a0\u4e2d\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,27],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/12908"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12908"}],"version-history":[{"count":3,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/12908\/revisions"}],"predecessor-version":[{"id":12915,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/12908\/revisions\/12915"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}