{"id":1920,"date":"2023-04-01T09:32:44","date_gmt":"2023-04-01T01:32:44","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1920"},"modified":"2023-04-22T08:52:24","modified_gmt":"2023-04-22T00:52:24","slug":"new-connection-rejected-due-to-integration-of-nacos-and-druid-password-using-ciphertext","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/new-connection-rejected-due-to-integration-of-nacos-and-druid-password-using-ciphertext\/","title":{"rendered":"\u6574\u5408Nacos\u548cDruid(password\u4f7f\u7528\u5bc6\u6587)\u51fa\u73b0\u65b0\u5efa\u8fde\u63a5\u88ab\u62d2\u7edd\u60c5\u51b5"},"content":{"rendered":"<h2>\u95ee\u9898\u63cf\u8ff0<\/h2>\n<p>Jmeter\u8fdb\u884c\u670d\u52a1\u538b\u6d4b\u65f6\u51fa\u73b0\uff0c\u6216\u56e0\u4e00\u6bb5\u65f6\u95f4\u672a\u64cd\u4f5c\u6570\u636e\u5e93\u65ad\u5f00\u8fde\u63a5\u540e\u518d\u6b21\u8bf7\u6c42\u5efa\u7acb\u8fde\u63a5\u65f6\uff0c\u670d\u52a1\u5668\u62d2\u7edd\u65b0\u7684\u8fde\u63a5\u60c5\u51b5\u3002<\/p>\n<pre><code>Caused by: com.mysql.cj.exceptions.CJException: Access denied for user &#039;appblog&#039;@&#039;192.168.1.10&#039; (using password: YES)<\/code><\/pre>\n<p><!-- more --><\/p>\n<h2>\u539f\u56e0\u5206\u6790<\/h2>\n<p>\u521d\u4e00\u770b\u5c31\u662f\u5bc6\u7801\u9519\u8bef\uff0c\u6570\u636e\u5e93\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-yml\">spring:\n  datasource:\n    appblog:\n      type: com.alibaba.druid.pool.DruidDataSource\n      driver-class-name: com.mysql.cj.jdbc.Driver\n      url: jdbc:mysql:\/\/192.168.1.10:3306\/appblog?useUnicode=true&amp;autoReconnect=true&amp;characterEncoding=utf-8\n      username: appblog\n      password: Up58k0xJr7C2kcVFTGrnxRlyPBsj7DPeKjMYUAHxWQfjighJLheMrDIlp7Xj8r5Ad1I8Q+qh5WwnCv5kFyWlTQ==\n      filters: config,myfilter\n      connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=3000;config.decrypt=true;config.decrypt.key=MFwwDQYJKoZIhvcNa5EBkQADSwAwSAJ6ALYHjdmAVAm79Ao3MbruNxsWM76Ifz+qaN8sOZesMKvYCJdpxLFLtmo6bNkpYkzk+OAYhXf7U8r0+dZngOy0RnMCAwEAAQ==<\/code><\/pre>\n<p>\u60c5\u51b5\u5206\u6790\uff1a<\/p>\n<p>1\u3001\u9879\u76ee\u542f\u52a8\u662f\u6b63\u5e38\u7684\uff0c\u542f\u52a8\u540e\u53ef\u4ee5\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u8bf4\u660e\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u914d\u7f6e\u6ca1\u95ee\u9898<br \/>\n2\u3001\u4f46\u4e3a\u4ec0\u4e48\u5728\u538b\u6d4b\u6216\u8005\u9694\u591c\u4e4b\u540e\uff0c\u5c31\u51fa\u73b0\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38\uff0c\u6570\u636e\u5e93\u62d2\u7edd\u8fde\u63a5<br \/>\n3\u3001\u6839\u636e\u5f02\u5e38\u63d0\u793a\uff0c\u662f\u6570\u636e\u5e93\u5bc6\u7801\u9519\u8bef\uff0c\u4f46\u662f\u5947\u602a\u4e3a\u4ec0\u4e48\u9879\u76ee\u5f00\u59cb\u542f\u52a8\u6b63\u5e38\uff0c\u538b\u6d4b\u6216\u9694\u591c\u540e\uff0c\u5bc6\u7801\u5c31\u9519\u4e86<br \/>\n4\u3001\u5f00\u542f\u8fdc\u7a0b\u8c03\u8bd5\uff0c\u5148\u5904\u7406\u538b\u6d4b\u60c5\u51b5<\/p>\n<h3>\u5207\u5165\u70b9\uff1aNacos\u5237\u65b0\u65e5\u5fd7<\/h3>\n<p>Nacos\u5237\u65b0\u540e\uff0c\u4f1a\u6253\u5370\u5982\u4e0b\u65e5\u5fd7\uff1a<\/p>\n<pre><code>2020-12-22 13:15:04.700 [ok-cloud-mall-service][INFO] [com.alibaba.druid.pool.DruidAbstractDataSource] [setPassword] [1146] : password changed<\/code><\/pre>\n<p>\u63d0\u793a\u5bc6\u7801\u5df2\u66f4\u65b0\uff0c\u5b9a\u4f4d\u5230\u6e90\u7801<code>com.alibaba.druid.pool.DruidAbstractDataSource<\/code>\uff1a<\/p>\n<pre><code class=\"language-java\">public abstract class DruidAbstractDataSource ... {\n\n    ...\n\n    public void setPassword(String password) {\n        if (!StringUtils.equals(this.password, password)) {\n            if (this.inited) {\n                LOG.info(&quot;password changed&quot;);\n            }\n\n            this.password = password;\n        }\n    }<\/code><\/pre>\n<p>\u7531\u6b64\u53ef\u77e5\uff0cNacos\u5237\u65b0\u4f1a\u56de\u8c03<code>DruidDataSource<\/code>\u7684<code>setPassword<\/code>\u65b9\u6cd5\uff0c\u5e76\u4e14\u5bc6\u7801\u53d1\u751f\u6539\u53d8\uff0c\u95ee\u9898\u5df2\u7ecf\u786e\u5b9a\uff0c\u5c31\u662f\u5bc6\u7801\u9519\u8bef<\/p>\n<h3>\u5207\u5165\u70b9\uff1aconfig\u8fc7\u6ee4\u5668<\/h3>\n<p>\u56e0\u914d\u7f6e\u6587\u4ef6\u4e2dDruid\u914d\u7f6e\u7684<code>filters<\/code>\u662f<code>config<\/code>\uff0c\u5b9a\u4f4d\u5230\u6e90\u7801<code>com.alibaba.druid.filter.config.ConfigFilter<\/code><\/p>\n<p>init\u65b9\u6cd5\u662f\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u521d\u59cb\u5316\u7684\u4f4d\u7f6e\uff0c\u80fd\u770b\u5230\u5bf9\u5bc6\u7801\u8fdb\u884c\u4e86\u89e3\u5bc6\u64cd\u4f5c<\/p>\n<pre><code class=\"language-java\">public class ConfigFilter extends FilterAdapter {\n    private static Log LOG = LogFactory.getLog(ConfigFilter.class);\n    public static final String CONFIG_FILE = &quot;config.file&quot;;\n    public static final String CONFIG_DECRYPT = &quot;config.decrypt&quot;;\n    public static final String CONFIG_KEY = &quot;config.decrypt.key&quot;;\n    public static final String SYS_PROP_CONFIG_FILE = &quot;druid.config.file&quot;;\n    public static final String SYS_PROP_CONFIG_DECRYPT = &quot;druid.config.decrypt&quot;;\n    public static final String SYS_PROP_CONFIG_KEY = &quot;druid.config.decrypt.key&quot;;\n\n    public ConfigFilter() {\n    }\n\n    public void init(DataSourceProxy dataSourceProxy) {\n        if (!(dataSourceProxy instanceof DruidDataSource)) {\n            LOG.error(&quot;ConfigLoader only support DruidDataSource&quot;);\n        }\n\n        DruidDataSource dataSource = (DruidDataSource) dataSourceProxy;\n        Properties connectionProperties = dataSource.getConnectProperties();\n\n        Properties configFileProperties = loadPropertyFromConfigFile(connectionProperties);\n\n        \/\/ \u5224\u65ad\u662f\u5426\u9700\u8981\u89e3\u5bc6\uff0c\u5982\u679c\u9700\u8981\u5c31\u8fdb\u884c\u89e3\u5bc6\u884c\u52a8\n        boolean decrypt = isDecrypt(connectionProperties, configFileProperties);\n\n        if (configFileProperties == null) {\n            if (decrypt) {\n                \/\/\u5bc6\u7801\u89e3\u7801\u64cd\u4f5c\n                decrypt(dataSource, null);\n            }\n            return;\n        }\n\n        if (decrypt) {\n            decrypt(dataSource, configFileProperties);\n        }\n\n        try {\n            DruidDataSourceFactory.config(dataSource, configFileProperties);\n        } catch (SQLException e) {\n            throw new IllegalArgumentException(&quot;Config DataSource error.&quot;, e);\n        }\n    }<\/code><\/pre>\n<p>\u5f80\u4e0b\u8d70\uff0c\u968f\u540e\u770b\u5230<code>passwordPlainText<\/code>\u4e3a\u5bc6\u7801\u7684\u660e\u6587(\u89e3\u5bc6\u540e)\uff0c\u5e76\u4e14\u89e3\u5bc6\u540e\u7684\u660e\u6587\u5bc6\u7801\uff0c\u8bbe\u7f6e\u5230\u4e86password\u6210\u5458\u53d8\u91cf\u4e2d<\/p>\n<pre><code class=\"language-java\">public void decrypt(DruidDataSource dataSource, Properties info) {\n\n    try {\n        String encryptedPassword = null;\n        if (info != null) {\n            encryptedPassword = info.getProperty(DruidDataSourceFactory.PROP_PASSWORD);\n        }\n\n        if (encryptedPassword == null || encryptedPassword.length() == 0) {\n            encryptedPassword = dataSource.getConnectProperties().getProperty(DruidDataSourceFactory.PROP_PASSWORD);\n        }\n\n        if (encryptedPassword == null || encryptedPassword.length() == 0) {\n            encryptedPassword = dataSource.getPassword();\n        }\n\n        PublicKey publicKey = getPublicKey(dataSource.getConnectProperties(), info);\n\n        String passwordPlainText = ConfigTools.decrypt(publicKey, encryptedPassword);\n\n        if (info != null) {\n            info.setProperty(DruidDataSourceFactory.PROP_PASSWORD, passwordPlainText);\n        } else {\n            dataSource.setPassword(passwordPlainText);\n        }\n    } catch (Exception e) {\n        throw new IllegalArgumentException(&quot;Failed to decrypt.&quot;, e);\n    }\n}<\/code><\/pre>\n<pre><code class=\"language-java\">public abstract class DruidAbstractDataSource ... {\n\n    public void setPassword(String password) {\n        if (!StringUtils.equals(this.password, password)) {\n            if (this.inited) {\n                LOG.info(&quot;password changed&quot;);\n            }\n\n            this.password = password;\n        }\n    }<\/code><\/pre>\n<p>\u53c8\u56de\u5230Nacos\u5237\u65b0\u540e\u65e5\u5fd7\u6253\u5370\u7684\u5730\u65b9\uff0c\u5373<code>password changed<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u731c\u6d4b\uff0c\u89e3\u5bc6\u53ea\u5728Druid\u521d\u59cb\u5316\u65f6\u8fdb\u884c\uff0c\u521d\u59cb\u5316\u65f6\u4f7f\u7528\u89e3\u5bc6\u540e\u7684\u660e\u6587\u8fde\u63a5\u6570\u636e\u5e93\uff0cNacos\u5237\u65b0\u540e\u65b0\u7684\u8fde\u63a5\u5219\u76f4\u63a5\u4f7f\u7528\u672a\u89e3\u5bc6\u7684\u5bc6\u6587\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u5bfc\u81f4\u8fde\u63a5\u5931\u8d25<\/p>\n<h3>\u573a\u666f\u68b3\u7406<\/h3>\n<p>1\u3001\u5f00\u59cb\u6b63\u5e38\u89e3\u5bc6\uff0c\u5e76\u4f7f\u7528\u660e\u6587\uff0c\u6210\u529f\u521b\u5efa\u8fde\u63a5\u6c60<br \/>\n2\u3001\u6240\u4ee5\u9879\u76ee\u542f\u52a8\u540e\u4e00\u5207\u6b63\u5e38<br \/>\n3\u3001\u968f\u540eNacos\u914d\u7f6e\u5237\u65b0\uff0c\u5bc6\u7801\u88ab\u91cd\u65b0set\u6210\u4e86\u5bc6\u6587<br \/>\n4\u3001\u90a3\u4e48\u5728\u538b\u6d4b(\u5f53\u524d\u8fde\u63a5\u6570\u4e0d\u591f\uff0c\u9700\u8981\u91cd\u65b0\u521b\u5efa)\u3001\u6216\u8005\u957f\u65f6\u95f4\u4e0d\u8c03\u7528(\u8fde\u63a5\u91ca\u653e\u65ad\u5f00\uff0c\u9700\u8981\u91cd\u8fde)\u4e4b\u540e\uff0c\u9700\u8981\u91cd\u65b0\u521b\u5efa\u8fde\u63a5\uff0c\u8fd9\u65f6\u5019\u5c31\u62ff\u7684\u662f\u5bc6\u6587\u53bb\u8bf7\u6c42\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u81ea\u7136\u5bc6\u7801\u4e0d\u5bf9<\/p>\n<p>\u9879\u76ee\u542f\u52a8\u65f6\uff0cNacos\u4e2d\u7684\u914d\u7f6e\u52a0\u8f7d\u4e86\u4e00\u6b21\uff0c\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u521d\u59cb\u5316\u6210\u529f\uff0c\u800c\u540e\u56e0\u4e3a\u4eba\u4e3a\u624b\u52a8\u5237\u65b0Nacos\u914d\u7f6e\u6216\u662f\u67d0\u79cd\u539f\u56e0\u5bfc\u81f4Nacos\u914d\u7f6e\u591a\u6b21\u8bfb\u53d6\u3002\u56e0\u4e3a\u5728\u6e90\u7801\u4e2d\u770b\u5230\uff0c\u521d\u59cb\u5316\u8fde\u63a5\u6c60\u7684\u65f6\u5019\u4f1a\u5bf9\u5bc6\u6587\u8fdb\u884c\u89e3\u5bc6\u3002\u800c\u7b2c\u4e8c\u6b21\u5e76\u672a\u8fdb\u884c\u89e3\u5bc6\uff0c\u53ea\u662f\u5c06\u5bc6\u6587set\u8fdb\u4e86password\u3002debugger\u6e90\u7801\u53d1\u73b0\uff0c\u4e5f\u53ea\u6709\u5728\u521d\u59cb\u5316\u8fde\u63a5\u6c60\u7684init()\u65b9\u6cd5\u4e4b\u624d\u4f1a\u8fdb\u884c\u89e3\u5bc6\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b21\u52a0\u8f7d\u914d\u7f6e\uff0c\u6b64\u65f6DataSource\u5df2\u7ecf\u5b8c\u6210\u4e86\u521d\u59cb\u5316\uff0c\u5e76\u4e0d\u4f1a\u518d\u6b21\u89e6\u53d1\u521d\u59cb\u5316\uff0c\u6240\u4ee5\u5bc6\u6587\u5e76\u672a\u88ab\u89e3\u5bc6\u3002<\/p>\n<p>\u7279\u522b\u6ce8\u610f\uff0c\u5982\u679cNacos\u4e2d\u6709\u914d\u7f6e<code>refreshable-dataids<\/code>\uff0c\u4f1a\u5728\u9879\u76ee\u542f\u52a8\u5b8c\u6bd5\u540e\uff0c\u518d\u52a0\u8f7d\u4e00\u6b21\u914d\u7f6e\u3002\u800c\u5c31\u662f\u6b64\u6b21\u52a0\u8f7d\uff0c\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u5df2\u7ecf\u521d\u59cb\u5316\u6210\u529f\uff0c\u5e76\u4e0d\u518d\u8fdb\u884c\u4e8c\u6b21\u521d\u59cb\u5316\uff0c\u6240\u4ee5\u5bc6\u6587\u5e76\u672a\u88ab\u89e3\u5bc6\uff0c\u76f4\u63a5set\u8fdb\u4e86password\u3002\u5bfc\u81f4\u5728\u8fde\u63a5\u4e0d\u591f\u6216\u8005\u91cd\u8fde\u65f6\uff0c\u4f7f\u7528\u7684\u5bc6\u7801\u9519\u8bef\u3002<\/p>\n<h3>\u590d\u73b0\u6b65\u9aa4<\/h3>\n<p>1\u3001\u5e94\u7528\u91cd\u542f\u540e\u4fee\u6539Nacos\u914d\u7f6e<\/p>\n<p>2\u3001\u4e00\u76f4\u7b49\u5f85\u5230\u51fa\u73b0\u65e5\u5fd7<\/p>\n<pre><code>2020-12-21 11:48:30.392 [ok-cloud-mall-service][ ERROR] [118336] [nio-8701-exec-3] [bfdcee1a80aac39a] [bfdcee1a80aac39a] [true] --- [com.alibaba.druid.pool.DruidAbstractDataSource] [testConnectionInternal] [1588] : discard long time none received connection. , jdbcUrl : jdbc:mysql:\/\/192.168.1.10:3306\/appblog?useUnicode=true&amp;autoReconnect=true&amp;characterEncoding=utf-8, jdbcUrl : jdbc:mysql:\/\/192.168.1.10:3306\/appblog?useUnicode=true&amp;autoReconnect=true&amp;characterEncoding=utf-8, lastPacketReceivedIdleMillis : 89618<\/code><\/pre>\n<p>3\u3001\u7acb\u5373\u5c31\u4f1a\u62a5\u9519\uff08\u6216\u8005\u91cd\u65b0\u8bf7\u6c42\u5efa\u7acb\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u5982\u767b\u5f55\u7b49\uff09<\/p>\n<h2>\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>\u91cd\u5199DataSource\u7684<code>setPassword<\/code>\u65b9\u6cd5\u5e76\u6ce8\u5165<\/p>\n<p>\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/alibaba\/druid\/blob\/master\/druid-spring-boot-starter\/src\/main\/java\/com\/alibaba\/druid\/spring\/boot\/autoconfigure\/DruidDataSourceWrapper.java\">https:\/\/github.com\/alibaba\/druid\/blob\/master\/druid-spring-boot-starter\/src\/main\/java\/com\/alibaba\/druid\/spring\/boot\/autoconfigure\/DruidDataSourceWrapper.java<\/a><\/p>\n<pre><code class=\"language-java\">\/**\n * Druid \u6570\u636e\u5e93\u5bc6\u7801\u53ea\u5728\u6570\u636e\u5e93 \u7b2c\u4e00\u6b21\u521d\u59cb\u5316\u65f6\u89e3\u5bc6\n * Nacos \u5237\u65b0\u65f6\u4f1a\u5c06\u201c\u6ca1\u6709\u89e3\u5bc6\u7684\u5bc6\u6587\u201d\u91cd\u65b0\u8d4b\u503c\u4e88DataSource\n * \u6570\u636e\u5e93\u5728\u91cd\u5efa\u8fde\u63a5\u65f6\u62a5\u9519\uff0c\u65e0\u6cd5\u8fde\u63a5\n *\/\n@Slf4j\n@Component\npublic class MyDruidDataSource extends DruidDataSource implements InitializingBean {\n    @Autowired\n    private DataSourceProperties basicProperties;\n\n    @Override\n    public void afterPropertiesSet() throws Exception {\n        \/\/if not found prefix &#039;spring.datasource.druid&#039; jdbc properties ,&#039;spring.datasource&#039; prefix jdbc properties will be used.\n        if (super.getUsername() == null) {\n            super.setUsername(basicProperties.determineUsername());\n        }\n        if (super.getPassword() == null) {\n            super.setPassword(basicProperties.determinePassword());\n        }\n        if (super.getUrl() == null) {\n            super.setUrl(basicProperties.determineUrl());\n        }\n        if (super.getDriverClassName() == null) {\n            super.setDriverClassName(basicProperties.getDriverClassName());\n        }\n    }\n\n    @Autowired(required = false)\n    public void autoAddFilters(List&lt;Filter&gt; filters) {\n        super.filters.addAll(filters);\n    }\n\n    @Override\n    public void setMaxEvictableIdleTimeMillis(long maxEvictableIdleTimeMillis) {\n        try {\n            super.setMaxEvictableIdleTimeMillis(maxEvictableIdleTimeMillis);\n        } catch (IllegalArgumentException ignore) {\n            super.maxEvictableIdleTimeMillis = maxEvictableIdleTimeMillis;\n        }\n    }\n\n    @Override\n    public void setPassword(String password) {\n        if (!this.inited) {\n            super.setPassword(password);\n        } else if (filters != null) {\n            try {\n                super.setPassword(ConfigTools.decrypt(getPublicKey(this.getConnectProperties()), password));\n            } catch (Exception e) {\n                log.warn(&quot;DataSource password decrypt error.&quot;, e);\n                super.setPassword(password);\n            }\n        }\n    }\n\n    public PublicKey getPublicKey(Properties connectionProperties) {\n        String key = connectionProperties.getProperty(&quot;config.decrypt.key&quot;);\n\n        if (StringUtils.isEmpty(key)) {\n            key = System.getProperty(&quot;druid.config.decrypt.key&quot;);\n        }\n\n        return ConfigTools.getPublicKey(key);\n    }\n}<\/code><\/pre>\n<pre><code class=\"language-java\">@Slf4j\n@Component\npublic class MyDruidFilter extends FilterAdapter {\n\n    @Autowired\n    private MyDruidDataSource myDruidDataSource;\n\n    @Override\n    public void init(DataSourceProxy dataSourceProxy) {\n        if (!(dataSourceProxy instanceof DruidDataSource)) {\n            log.error(&quot;ConfigLoader only support DruidDataSource&quot;);\n        }\n        DruidDataSource dataSource = (DruidDataSource) dataSourceProxy;\n        log.info(&quot;db configuration: url=&quot; + dataSource.getUrl());\n\n        Properties properties = dataSource.getConnectProperties();\n        try {\n            \/\/ \u5c06\u4fe1\u606f\u914d\u7f6e\u8fdbDruid\n            DruidDataSourceFactory.config(myDruidDataSource, properties);\n        } catch (Exception e) {\n            log.error(&quot;DataSource config error.&quot;, e);\n        }\n    }\n}<\/code><\/pre>\n<p>\u6216\u8005<\/p>\n<pre><code class=\"language-java\">@Configuration\npublic class MyDruidDataSourceConfig {\n\n    @Autowired\n    private MyDruidDataSource myDruidDataSource;\n\n    @Bean(&quot;dataSource&quot;)\n    public DataSource druidDataSource() {\n        return myDruidDataSource;\n    }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0 Jmeter\u8fdb\u884c\u670d\u52a1\u538b\u6d4b\u65f6\u51fa\u73b0\uff0c\u6216\u56e0\u4e00\u6bb5\u65f6\u95f4\u672a\u64cd\u4f5c\u6570\u636e\u5e93\u65ad\u5f00\u8fde\u63a5\u540e\u518d\u6b21\u8bf7\u6c42\u5efa\u7acb\u8fde\u63a5\u65f6\uff0c\u670d\u52a1\u5668\u62d2\u7edd\u65b0\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,41],"tags":[110,440],"class_list":["post-1920","post","type-post","status-publish","format-standard","hentry","category-nacos","category-spring-boot","tag-druid","tag-nacos"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1920"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1920\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}