{"id":5031,"date":"2020-06-20T11:03:03","date_gmt":"2020-06-20T03:03:03","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=5031"},"modified":"2020-06-20T11:03:03","modified_gmt":"2020-06-20T03:03:03","slug":"springbootlayuithymeleaf%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%ad%a6%e7%94%9f%e6%88%90%e7%bb%a9%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=5031","title":{"rendered":"SpringBoot+Layui+Thymeleaf\u5b9e\u73b0\u7684\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u7ee7\u7eed\u5206\u4eab\u4e00\u4e9b SpringBoot \u7684\u6e90\u7801\u9879\u76ee\uff0c\u65b9\u4fbf\u521d\u5b66\u8005\u589e\u52a0\u81ea\u5df1\u7684\u9879\u76ee\u7ecf\u9a8c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u5929\u8981\u5206\u4eab\u7684\u662f\u4e00\u5957\u57fa\u4e8e SpringBoot+Layui+Thymeleaf\u5b9e\u73b0\u7684\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf\u3002\u4e0b\u9762\u6211\u4eec\u5148\u770b\u4e00\u4e9b\u6e90\u7801\u8fd0\u884c\u540e\u7684\u754c\u9762\u622a\u56fe\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/gitee.com\/xmtblog\/img\/raw\/master\/2020\/xscjglxt0.png\" alt=\"\" \/><figcaption>\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf\u767b\u5f55\u9875\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/gitee.com\/xmtblog\/img\/raw\/master\/2020\/xscjglxt1.png\" alt=\"\" \/><figcaption>\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf\u540e\u9762\u7ba1\u7406\u754c\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/gitee.com\/xmtblog\/img\/raw\/master\/2020\/xscjglxt2.png\" alt=\"\" \/><figcaption>\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf\u73ed\u7ea7\u79d1\u76ee\u6210\u7ee9\u5206\u6790\u56fe<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/gitee.com\/xmtblog\/img\/raw\/master\/2020\/xscjglxt4.png\" alt=\"\" \/><figcaption>\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf\u6210\u7ee9\u7edf\u8ba1\u56fe<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u66f4\u591a\u9875\u9762\u6211\u5c31\u4e0d\u622a\u56fe\u4e86\uff0c\u5927\u5bb6\u81ea\u5df1\u4e0b\u8f7d\u6e90\u7801\u540e\u53bb\u63a2\u7d22\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u9762\u6211\u8bf4\u4e00\u4e9b\u8fd0\u884c\u7684\u76f8\u5173\u8981\u6c42\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7cfb\u7edf\u8fd0\u884c\u73af\u5883 <\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u64cd\u4f5c\u7cfb\u7edf\uff1awindows7 64\u4f4d\u6216\u8005 macos \u7cfb\u7edf\u90fd\u884c\u3002 <\/li><li>\u4ee3\u7801\u7f16\u8f91\u5668\uff1aeclipse \u6216\u8005 idea\uff0c\u63a8\u8350 idea<\/li><li>Java\u7248\u672c\uff1a1.8 \uff0c64\u4f4d <\/li><li>\u7f16\u8bd1\u5de5\u5177\uff1amaven <\/li><li>Mysql:5.7.18 <\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u7cfb\u7edf\u4f7f\u7528\u8bf4\u660e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6570\u636e\u5bfc\u5165\uff1a \u65b0\u5efa\u6570\u636e\u5e93myscoremanage\uff0c\u8bbe\u7f6e\u6570\u636e\u5e93\u7f16\u7801\u4e3autf-8\u3002\u5c06\u9879\u76ee\u6587\u4ef6\u4e0b\u7684myscoremanage.sql\u5bfc\u5165\u6570\u636e\u5e93\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a8\u8350\u5bfc\u5165 idea \u4e2d\u3002\u5982\u679c\u4f7f\u7528 eclipse \u4e5f\u884c\uff0c\u5c06\u9879\u76ee\u5bfc\u5165\u5230 eclipse \u7684\u6b65\u9aa4\uff1a\u6253\u5f00eclipse\uff0c\u9009\u62e9 file-&gt;import-&gt;existing maven project-&gt; \u9009\u62e9\u9879\u76ee\u6240\u5728\u7684\u8def\u5f84-&gt;finish\uff0c\u5373\u53ef\u5b8c\u6210\u9879\u76ee\u5bfc\u5165(\u5bfc\u5165 idea \u4e5f\u53ef\u4ee5\uff0c\u53c2\u8003\u6211\u7684 B \u7ad9\u89c6\u9891)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u6539\u9879\u76ee\u6570\u636e\u5e93: \u4fee\u6539\u9879\u76ee\u4e0b\u7684\uff1a\\src\\main\\resources\\application.properties\u7684\u6570\u636e\u5e93\u914d\u7f6e\u3002\u4e3b\u8981\u662f\u586b\u5199\u597d\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 maven \u91cd\u65b0\u7f16\u8bd1\u9879\u76ee\uff1a \u53f3\u952e\u9879\u76ee-&gt;run as -&gt;maven install\u3002 \u5b8c\u6210\u540e\uff0c\u5728\u66f4\u65b0\u9879\u76ee\uff1a \u53f3\u952e\u9879\u76ee-&gt;maven-&gt;update project\u2026\u2026 \u4ee5\u4e0a\u7f16\u8bd1\u8fc7\u7a0b\u65e0\u62a5\u9519\u540e\uff0c\u9009\u62e9src\/main\/java\/TestSpboot2Application.java\uff0crun as-&gt;java application,\u5373\u53ef\u8fd0\u884c\u3002 \u9996\u5148\u8fdb\u5165\u767b\u9646\u4e3b\u9875\uff1ahttp:\/\/localhost:8080\/Sys\/loginView\uff0c\u8fdb\u884c\u767b\u9646<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u767b\u9646\u7cfb\u7edf\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a \u7cfb\u7edf\u6240\u6709\u5bc6\u7801\uff0c\u5747\u5df2\u7ecf\u91c7\u7528 MD5 \u52a0\u5bc6\u3002\u7cfb\u7edf admin \u8d26\u53f7\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u90fd\u662f admin\u3002\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fdb\u5165\u7ba1\u7406\u5458\u754c\u9762\u540e\uff0c\u53ef\u4ee5\u66f4\u6539\u5b66\u751f\u548c\u6559\u5e08\u7684\u5bc6\u7801\u3002\u66f4\u6539\u540e\u7684\u5bc6\u7801\u5728\u540e\u53f0\u7684\u63a7\u5236\u53f0\u5185\u53ef\u4ee5\u67e5\u770b\u5230\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u6e90\u7801\u7684\u53ef\u4ee5\u5173\u6ce8\u6211\u7684\u516c\u4f17\u53f7\uff0c\u52a0\u6211\u5fae\u4fe1\uff0c\u514d\u8d39\u53d1\u7ed9\u5927\u5bb6\uff01<\/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=5031\">SpringBoot+Layui+Thymeleaf\u5b9e\u73b0\u7684\u5b66\u751f\u6210\u7ee9\u7ba1\u7406\u7cfb\u7edf<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u7ee7\u7eed\u5206\u4eab\u4e00\u4e9b SpringBoot \u7684\u6e90\u7801\u9879\u76ee\uff0c\u65b9\u4fbf\u521d\u5b66\u8005\u589e\u52a0\u81ea\u5df1\u7684\u9879\u76ee\u7ecf\u9a8c\u3002 \u4eca\u5929\u8981\u5206\u4eab\u7684\u662f\u4e00\u5957\u57fa\u4e8e Spr [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5031","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5031","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=5031"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5031\/revisions"}],"predecessor-version":[{"id":5032,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5031\/revisions\/5032"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}