{"id":1193,"date":"2017-03-28T14:19:44","date_gmt":"2017-03-28T06:19:44","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1193"},"modified":"2017-03-29T15:23:54","modified_gmt":"2017-03-29T07:23:54","slug":"shiro-%e8%ba%ab%e4%bb%bd%e9%aa%8c%e8%af%81%e3%80%81%e6%8e%88%e6%9d%83%e7%99%bb%e5%bd%95%e9%80%80%e5%87%ba","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1193","title":{"rendered":"Shiro \u8eab\u4efd\u9a8c\u8bc1\u3001\u6388\u6743\u767b\u5f55\u9000\u51fa"},"content":{"rendered":"<p>\n\t<a href=\"http:\/\/baike.baidu.com\/item\/\u8eab\u4efd\u9a8c\u8bc1\" name=\"\u8eab\u4efd\u9a8c\u8bc1\" target=\"_blank\" title=\"\u8eab\u4efd\u9a8c\u8bc1\">\u8eab\u4efd\u9a8c\u8bc1<\/a>\uff0c\u5373\u5728\u5e94\u7528\u4e2d\u8c01\u80fd\u8bc1\u660e\u4ed6\u5c31\u662f\u4ed6\u672c\u4eba\u3002\u4e00\u822c\u63d0\u4f9b\u5982\u4ed6\u4eec\u7684\u8eab\u4efdID\u4e00\u4e9b\u6807\u8bc6\u4fe1\u606f\u6765\u8868\u660e\u4ed6\u5c31\u662f\u4ed6\u672c\u4eba\uff0c\u5982\u63d0\u4f9b\u8eab\u4efd\u8bc1\uff0c\u7528\u6237\u540d\/\u5bc6\u7801\u6765\u8bc1\u660e\u3002<br \/>\n\t\u5728<a href=\"http:\/\/shiro.apache.org\/\" name=\"shiro\" target=\"_blank\" title=\"shiro\">shiro<\/a>\u4e2d\uff0c\u7528\u6237\u9700\u8981\u63d0\u4f9bprincipals \uff08\u8eab\u4efd\uff09\u548ccredentials\uff08\u8bc1\u660e\uff09\u7ed9shiro\uff0c\u4ece\u800c\u5e94\u7528\u80fd\u9a8c\u8bc1\u7528\u6237\u8eab\u4efd\u3002\n<\/p>\n<ul>\n<li>\n\t\tprincipals\uff1a\u8eab\u4efd\uff0c\u5373\u4e3b\u4f53\u7684\u6807\u8bc6\u5c5e\u6027\uff0c\u53ef\u4ee5\u662f\u4efb\u4f55\u4e1c\u897f\uff0c\u5982\u7528\u6237\u540d\u3001\u90ae\u7bb1\u7b49\uff0c\u552f\u4e00\u5373\u53ef\u3002\u4e00\u4e2a\u4e3b\u4f53\u53ef\u4ee5\u6709\u591a\u4e2aprincipals\uff0c\u4f46\u53ea\u6709\u4e00\u4e2aPrimary principals\uff0c\u4e00\u822c\u662f\u7528\u6237\u540d\/\u5bc6\u7801\/\u624b\u673a\u53f7\u3002\n\t<\/li>\n<li>\n\t\tcredentials\uff1a\u8bc1\u660e\/\u51ed\u8bc1\uff0c\u5373\u53ea\u6709\u4e3b\u4f53\u77e5\u9053\u7684\u5b89\u5168\u503c\uff0c\u5982\u5bc6\u7801\/\u6570\u5b57\u8bc1\u4e66\u7b49\u3002\n\t<\/li>\n<li>\n\t\tSubject\uff1a\u4e3b\u4f53\uff0c\u4ee3\u8868\u4e86\u5f53\u524d&ldquo;\u7528\u6237&rdquo;\uff0c\u8fd9\u4e2a\u7528\u6237\u4e0d\u4e00\u5b9a\u662f\u4e00\u4e2a\u5177\u4f53\u7684\u4eba\uff0c\u4e0e\u5f53\u524d\u5e94\u7528\u4ea4\u4e92\u7684\u4efb\u4f55\u4e1c\u897f\u90fd\u662fSubject\uff0c\u5982\u7f51\u7edc\u722c\u866b\uff0c\u673a\u5668\u4eba\u7b49\uff1b\u5373\u4e00\u4e2a\u62bd\u8c61\u6982\u5ff5\uff1b\u6240\u6709Subject\u90fd\u7ed1\u5b9a\u5230SecurityManager\uff0c\u4e0eSubject\u7684\u6240\u6709\u4ea4\u4e92\u90fd\u4f1a\u59d4\u6258\u7ed9SecurityManager\uff1b\u53ef\u4ee5\u628aSubject\u8ba4\u4e3a\u662f\u4e00\u4e2a\u95e8\u9762\uff1bSecurityManager\u624d\u662f\u5b9e\u9645\u7684\u6267\u884c\u8005\uff1b\n\t<\/li>\n<li>\n\t\tRealm\uff1a\u57df\uff0cShiro\u4ece\u4eceRealm\u83b7\u53d6\u5b89\u5168\u6570\u636e\uff08\u5982\u7528\u6237\u3001\u89d2\u8272\u3001\u6743\u9650\uff09\uff0c\u5c31\u662f\u8bf4SecurityManager\u8981\u9a8c\u8bc1\u7528\u6237\u8eab\u4efd\uff0c\u90a3\u4e48\u5b83\u9700\u8981\u4eceRealm\u83b7\u53d6\u76f8\u5e94\u7684\u7528\u6237\u8fdb\u884c\u6bd4\u8f83\u4ee5\u786e\u5b9a\u7528\u6237\u8eab\u4efd\u662f\u5426\u5408\u6cd5\uff1b\u4e5f\u9700\u8981\u4eceRealm\u5f97\u5230\u7528\u6237\u76f8\u5e94\u7684\u89d2\u8272\/\u6743\u9650\u8fdb\u884c\u9a8c\u8bc1\u7528\u6237\u662f\u5426\u80fd\u8fdb\u884c\u64cd\u4f5c\uff1b\u53ef\u4ee5\u628aRealm\u770b\u6210DataSource\uff0c\u5373\u5b89\u5168\u6570\u636e\u6e90\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u6700\u5e38\u89c1\u7684principals\u548ccredentials\u7ec4\u5408\u5c31\u662f\u7528\u6237\u540d\/\u5bc6\u7801\u4e86\u3002\u63a5\u4e0b\u6765\u5148\u8fdb\u884c\u4e00\u4e2a\u57fa\u672c\u7684\u8eab\u4efd\u8ba4\u8bc1\u3002\n<\/p>\n<h2>\n\t\u521b\u5efa Shiro \u9879\u76ee<br \/>\n<\/h2>\n<p>\n\t\u5148\u521b\u5efa\u4e00\u4e2a<a href=\"http:\/\/maven.apache.org\/\" name=\"maven\" target=\"_blank\" title=\"maven\">maven<\/a>\u9879\u76eeshiro1\u3002\u6dfb\u52a0junit\u3001common-logging\u53cashiro-core\u4f9d\u8d56\u3002pom\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;dependencies&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;junit&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;junit&lt;\/artifactId&gt;  \r\n        &lt;version&gt;4.9&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;commons-logging&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;commons-logging&lt;\/artifactId&gt;  \r\n        &lt;version&gt;1.1.3&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;org.apache.shiro&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;shiro-core&lt;\/artifactId&gt;  \r\n        &lt;version&gt;1.2.2&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n&lt;\/dependencies&gt;<\/pre>\n<p>\n\t\u65b0\u5efa&nbsp;shiro.ini&nbsp;\u51c6\u5907\u4e00\u4e9b\u7528\u6237\u8eab\u4efd\/\u51ed\u636e\n<\/p>\n<pre class=\"brush:plain;\">\r\n[users]\r\nxttblog=123\r\ncodedq=123<\/pre>\n<p>\n\tini\u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u8fc7[users]\u6307\u5b9a\u4e86\u4e24\u4e2a\u4e3b\u4f53\uff1axttblog\/123\u3001codedq\/123\u3002\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5b9e\u73b0Shiro\u7684\u767b\u5f55\u548c\u9000\u51fa\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\npackage com.xttblog;\r\n\r\nimport org.apache.shiro.SecurityUtils;\r\nimport org.apache.shiro.authc.AuthenticationException;\r\nimport org.apache.shiro.authc.UsernamePasswordToken;\r\nimport org.apache.shiro.config.IniSecurityManagerFactory;\r\nimport org.apache.shiro.subject.Subject;\r\nimport org.apache.shiro.util.Factory;\r\nimport org.junit.Assert;\r\nimport org.junit.Test;\r\n\r\npublic class LoginLogoutTest {\r\n\t\r\n\t@Test\r\n\tpublic void testHelloWord() {\r\n\t\t\/\/1\u3001\u83b7\u53d6SecurityManager\u5de5\u5382\uff0c\u6b64\u5904\u4f7f\u7528Ini\u914d\u7f6e\u6587\u4ef6\u521d\u59cb\u5316SecurityManager  \r\n\t\tFactory&lt;org.apache.shiro.mgt.SecurityManager&gt; factory =  \r\n\t\t\t\tnew IniSecurityManagerFactory(&quot;classpath:shiro.ini&quot;);  \r\n\t\t\/\/2\u3001\u5f97\u5230SecurityManager\u5b9e\u4f8b \u5e76\u7ed1\u5b9a\u7ed9SecurityUtils  \r\n\t\torg.apache.shiro.mgt.SecurityManager securityManager = factory.getInstance();  \r\n\t\tSecurityUtils.setSecurityManager(securityManager);  \r\n\t\t\/\/3\u3001\u5f97\u5230Subject\u53ca\u521b\u5efa\u7528\u6237\u540d\/\u5bc6\u7801\u8eab\u4efd\u9a8c\u8bc1Token\uff08\u5373\u7528\u6237\u8eab\u4efd\/\u51ed\u8bc1\uff09  \r\n\t\tSubject subject = SecurityUtils.getSubject();  \r\n\t\tUsernamePasswordToken token = new UsernamePasswordToken(&quot;xttblog&quot;, &quot;123&quot;);  \r\n\r\n\t\ttry {  \r\n\t\t\t\/\/4\u3001\u767b\u5f55\uff0c\u5373\u8eab\u4efd\u9a8c\u8bc1  \r\n\t\t\tsubject.login(token);  \r\n\t\t} catch (AuthenticationException e) {  \r\n\t\t\t\/\/5\u3001\u8eab\u4efd\u9a8c\u8bc1\u5931\u8d25  \r\n\t\t\te.printStackTrace();\r\n\t\t}  \r\n\r\n\t\tAssert.assertEquals(true, subject.isAuthenticated()); \/\/\u65ad\u8a00\u7528\u6237\u5df2\u7ecf\u767b\u5f55  \r\n\r\n\t\t\/\/6\u3001\u9000\u51fa  \r\n\t\tsubject.logout();\r\n\t} \r\n}<\/pre>\n<h2>\n\tShiro \u8eab\u4efd\u8ba4\u8bc1\u8fc7\u7a0b<br \/>\n<\/h2>\n<ol>\n<li>\n\t\t\u9996\u5148\u901a\u8fc7new IniSecurityManagerFactory\u5e76\u6307\u5b9a\u4e00\u4e2aini\u914d\u7f6e\u6587\u4ef6\u6765\u521b\u5efa\u4e00\u4e2aSecurityManager\u5de5\u5382\uff1b\n\t<\/li>\n<li>\n\t\t\u63a5\u7740\u83b7\u53d6SecurityManager\u5e76\u7ed1\u5b9a\u5230SecurityUtils\uff0c\u8fd9\u662f\u4e00\u4e2a\u5168\u5c40\u8bbe\u7f6e\uff0c\u8bbe\u7f6e\u4e00\u6b21\u5373\u53ef\uff1b\n\t<\/li>\n<li>\n\t\t\u901a\u8fc7SecurityUtils\u5f97\u5230Subject\uff0c\u5176\u4f1a\u81ea\u52a8\u7ed1\u5b9a\u5230\u5f53\u524d\u7ebf\u7a0b\uff1b\u5982\u679c\u5728web\u73af\u5883\u5728\u8bf7\u6c42\u7ed3\u675f\u65f6\u9700\u8981\u89e3\u9664\u7ed1\u5b9a\uff1b\u7136\u540e\u83b7\u53d6\u8eab\u4efd\u9a8c\u8bc1\u7684Token\uff0c\u5982\u7528\u6237\u540d\/\u5bc6\u7801\uff1b\n\t<\/li>\n<li>\n\t\t\u8c03\u7528subject.login\u65b9\u6cd5\u8fdb\u884c\u767b\u5f55\uff0c\u5176\u4f1a\u81ea\u52a8\u59d4\u6258\u7ed9SecurityManager.login\u65b9\u6cd5\u8fdb\u884c\u767b\u5f55\uff1b\n\t<\/li>\n<li>\n\t\t\u5982\u679c\u8eab\u4efd\u9a8c\u8bc1\u5931\u8d25\u8bf7\u6355\u83b7AuthenticationException\u6216\u5176\u5b50\u7c7b\uff0c\u5e38\u89c1\u7684\u5982\uff1a<strong><span style=\"color:#FF0000\"> DisabledAccountException\uff08\u7981\u7528\u7684\u5e10\u53f7\uff09\u3001LockedAccountException\uff08\u9501\u5b9a\u7684\u5e10\u53f7\uff09\u3001UnknownAccountException\uff08\u9519\u8bef\u7684\u5e10\u53f7\uff09\u3001ExcessiveAttemptsException\uff08\u767b\u5f55\u5931\u8d25\u6b21\u6570\u8fc7\u591a\uff09\u3001IncorrectCredentialsException \uff08\u9519\u8bef\u7684\u51ed\u8bc1\uff09\u3001ExpiredCredentialsException\uff08\u8fc7\u671f\u7684\u51ed\u8bc1\uff09<\/span><\/strong>\u7b49\uff0c\u5177\u4f53\u8bf7\u67e5\u770b\u5176\u7ee7\u627f\u5173\u7cfb\uff1b\u5bf9\u4e8e\u9875\u9762\u7684\u9519\u8bef\u6d88\u606f\u5c55\u793a\uff0c\u6700\u597d\u4f7f\u7528\u5982&ldquo;\u7528\u6237\u540d\/\u5bc6\u7801\u9519\u8bef&rdquo;\u800c\u4e0d\u662f&ldquo;\u7528\u6237\u540d\u9519\u8bef&rdquo;\/&ldquo;\u5bc6\u7801\u9519\u8bef&rdquo;\uff0c\u9632\u6b62\u4e00\u4e9b\u6076\u610f\u7528\u6237\u975e\u6cd5\u626b\u63cf\u5e10\u53f7\u5e93\uff1b\n\t<\/li>\n<li>\n\t\t\u6700\u540e\u53ef\u4ee5\u8c03\u7528subject.logout\u9000\u51fa\uff0c\u5176\u4f1a\u81ea\u52a8\u59d4\u6258\u7ed9SecurityManager.logout\u65b9\u6cd5\u9000\u51fa\u3002\n\t<\/li>\n<\/ol>\n<p>\n\t\u6700\u540e\u603b\u7ed3\u51fa\u8eab\u4efd\u9a8c\u8bc1\u7684\u6b65\u9aa4\uff1a\n<\/p>\n<ol>\n<li>\n\t\t\u6536\u96c6\u7528\u6237\u8eab\u4efd\/\u51ed\u8bc1\uff0c\u5373\u5982\u7528\u6237\u540d\/\u5bc6\u7801\uff1b\n\t<\/li>\n<li>\n\t\t\u8c03\u7528Subject.login\u8fdb\u884c\u767b\u5f55\uff0c\u5982\u679c\u5931\u8d25\u5c06\u5f97\u5230\u76f8\u5e94\u7684AuthenticationException\u5f02\u5e38\uff0c\u6839\u636e\u5f02\u5e38\u63d0\u793a\u7528\u6237\u9519\u8bef\u4fe1\u606f\uff1b\u5426\u5219\u767b\u5f55\u6210\u529f\uff1b\n\t<\/li>\n<li>\n\t\t\u6700\u540e\u8c03\u7528Subject.logout\u8fdb\u884c\u9000\u51fa\u64cd\u4f5c\u3002\n\t<\/li>\n<\/ol>\n<h2>\n\tShiro \u8eab\u4efd\u8ba4\u8bc1\u6d41\u7a0b<br \/>\n<\/h2>\n<p>\n\t<img decoding=\"async\" alt=\"Shiro \u8eab\u4efd\u8ba4\u8bc1\u6d41\u7a0b\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201703\/28\/1490681564_708189.png\" style=\"width: 483px;height: 314px\" \/>\n<\/p>\n<ol>\n<li>\n\t\t\u9996\u5148\u8c03\u7528Subject.login(token)\u8fdb\u884c\u767b\u5f55\uff0c\u5176\u4f1a\u81ea\u52a8\u59d4\u6258\u7ed9Security Manager\uff0c\u8c03\u7528\u4e4b\u524d\u5fc5\u987b\u901a\u8fc7SecurityUtils. setSecurityManager()\u8bbe\u7f6e\uff1b\n\t<\/li>\n<li>\n\t\tSecurityManager\u8d1f\u8d23\u771f\u6b63\u7684\u8eab\u4efd\u9a8c\u8bc1\u903b\u8f91\uff1b\u5b83\u4f1a\u59d4\u6258\u7ed9Authenticator\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff1b\n\t<\/li>\n<li>\n\t\tAuthenticator\u624d\u662f\u771f\u6b63\u7684\u8eab\u4efd\u9a8c\u8bc1\u8005\uff0cShiro API\u4e2d\u6838\u5fc3\u7684\u8eab\u4efd\u8ba4\u8bc1\u5165\u53e3\u70b9\uff0c\u6b64\u5904\u53ef\u4ee5\u81ea\u5b9a\u4e49\u63d2\u5165\u81ea\u5df1\u7684\u5b9e\u73b0\uff1b\n\t<\/li>\n<li>\n\t\tAuthenticator\u53ef\u80fd\u4f1a\u59d4\u6258\u7ed9\u76f8\u5e94\u7684AuthenticationStrategy\u8fdb\u884c\u591aRealm\u8eab\u4efd\u9a8c\u8bc1\uff0c\u9ed8\u8ba4ModularRealmAuthenticator\u4f1a\u8c03\u7528AuthenticationStrategy\u8fdb\u884c\u591aRealm\u8eab\u4efd\u9a8c\u8bc1\uff1b\n\t<\/li>\n<li>\n\t\tAuthenticator\u4f1a\u628a\u76f8\u5e94\u7684token\u4f20\u5165Realm\uff0c\u4eceRealm\u83b7\u53d6\u8eab\u4efd\u9a8c\u8bc1\u4fe1\u606f\uff0c\u5982\u679c\u6ca1\u6709\u8fd4\u56de\/\u629b\u51fa\u5f02\u5e38\u8868\u793a\u8eab\u4efd\u9a8c\u8bc1\u5931\u8d25\u4e86\u3002\u6b64\u5904\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2aRealm\uff0c\u5c06\u6309\u7167\u76f8\u5e94\u7684\u987a\u5e8f\u53ca\u7b56\u7565\u8fdb\u884c\u8bbf\u95ee\u3002\n\t<\/li>\n<\/ol>\n<h2>\n\t\u603b\u7ed3<br \/>\n<\/h2>\n<p>\n\t\u901a\u8fc7\u8fd9\u4e2a\u7b80\u5355\u7684\u767b\u5f55\u9000\u51fa\u7a0b\u5e8f\uff0c\u6211\u4eec\u53d1\u73b0\u6709\u4ee5\u4e0b\u4e24\u4e2a\u7f3a\u70b9\uff1a\n<\/p>\n<ol>\n<li>\n\t\t\u7528\u6237\u540d\/\u5bc6\u7801\u786c\u7f16\u7801\u5728ini\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u540e\u9700\u8981\u6539\u6210\u5982\u6570\u636e\u5e93\u5b58\u50a8\uff0c\u4e14\u5bc6\u7801\u9700\u8981\u52a0\u5bc6\u5b58\u50a8\uff1b\n\t<\/li>\n<li>\n\t\t\u7528\u6237\u8eab\u4efdToken\u53ef\u80fd\u4e0d\u4ec5\u4ec5\u662f\u7528\u6237\u540d\/\u5bc6\u7801\uff0c\u4e5f\u53ef\u80fd\u8fd8\u6709\u5176\u4ed6\u7684\uff0c\u5982\u767b\u5f55\u65f6\u5141\u8bb8\u7528\u6237\u540d\/\u90ae\u7bb1\/\u624b\u673a\u53f7\u540c\u65f6\u767b\u5f55\u3002\n\t<\/li>\n<\/ol>\n<p>\n\t\u5982\u679c\u8981\u6ee1\u8db3\u8fd9\u4e24\u4e2a\u9700\u6c42\uff0c\u4e14\u770b\u6211\u4eec\u4e0b\u56de\u5206\u89e3\uff01\u76f8\u5173\u4ee3\u7801\u4e0b\u8f7d\u94fe\u63a5\uff1a<a href=\"http:\/\/pan.baidu.com\/s\/1jH6OmqU\" name=\"Shiro \u9879\u76ee \u6e90\u7801\u4e0b\u8f7d\" target=\"_blank\" title=\"Shiro \u9879\u76ee \u6e90\u7801\u4e0b\u8f7d\">http:\/\/pan.baidu.com\/s\/1jH6OmqU<\/a> \u5bc6\u7801\uff1ay3qp<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1193\">Shiro \u8eab\u4efd\u9a8c\u8bc1\u3001\u6388\u6743\u767b\u5f55\u9000\u51fa<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u8eab\u4efd\u9a8c\u8bc1\uff0c\u5373\u5728\u5e94\u7528\u4e2d\u8c01\u80fd\u8bc1\u660e\u4ed6\u5c31\u662f\u4ed6\u672c\u4eba\u3002\u4e00\u822c\u63d0\u4f9b\u5982\u4ed6\u4eec\u7684\u8eab\u4efdID\u4e00\u4e9b\u6807\u8bc6\u4fe1\u606f\u6765\u8868\u660e\u4ed6\u5c31\u662f\u4ed6\u672c\u4eba\uff0c\u5982\u63d0\u4f9b\u8eab\u4efd\u8bc1 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[418,949,416,829,828],"class_list":["post-1193","post","type-post","status-publish","format-standard","hentry","category-java","tag-securitymanager","tag-securityutils","tag-shiro","tag-829","tag-828"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1193"}],"version-history":[{"count":2,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions"}],"predecessor-version":[{"id":1214,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions\/1214"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}