{"id":8414,"date":"2024-06-10T16:01:01","date_gmt":"2024-06-10T08:01:01","guid":{"rendered":""},"modified":"2024-06-10T16:01:01","modified_gmt":"2024-06-10T08:01:01","slug":"java o2o_Java\u9879\u76ee\u5b9e\u6218\u7bc7\u4e4b\u6821\u56edO2O\u5546\u94fa\u5e73\u53f0-\u5f00\u53d1\u51c6\u5907\u4e00","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8414.html","title":{"rendered":"java o2o_Java\u9879\u76ee\u5b9e\u6218\u7bc7\u4e4b\u6821\u56edO2O\u5546\u94fa\u5e73\u53f0-\u5f00\u53d1\u51c6\u5907\u4e00"},"content":{"rendered":"
\n

\u6821\u56edO2O\u5546\u94fa\u5e73\u53f0<\/p>\n

\u4e00. \u9879\u76ee\u4ecb\u7ecd<\/p>\n

\u6821\u56edo2o\u5e73\u53f0\u662f\u4e00\u4e2a\u65b0\u5174\u7684\u7535\u5b50\u5546\u52a1\u5e73\u53f0\uff0c\u4e3b\u8981\u662f\u4e3a\u4e86\u5e7f\u5927\u5b66\u751f\u7fa4\u4f53\u5efa\u7acb\u4e00\u4e2a\u5b9e\u7528\u6027\uff0c\u5e7f\u6cdb\u6027\uff0c\u5feb\u6377\u6027\u7684\u6d88\u8d39\u5e73\u53f0\u3002\u5c31\u5927\u5b66\u751f\u7684\u6d88\u8d39\u7684\u72b6\u51b5\uff0c\u5e02\u573a\u4efd\u989d\u76f8\u5f53\u5de8\u5927\uff0c\u6d88\u8d39\u6f5c\u529b\u4e5f\u662f\u975e\u5e38\u53ef\u89c2\u7684\uff0c\u8fd9\u6837\u7684\u5e02\u573a\u4e3a\u8be5\u5e73\u53f0\u7684\u53d1\u5c55\u63d0\u4f9b\u4e86\u5e7f\u5927\u7684\u53d1\u5c55\u524d\u666f\u3002<\/p>\n

\u968f\u7740\u9879\u76ee\u4ea7\u54c1\u7684\u8fed\u4ee3\uff0c\u6b64\u9879\u76ee\u5c06\u63d0\u4f9b\u4e24\u4e2a\u7248\u672c\u3002<\/p>\n

\"java<\/p>\n

\u4e8c. \u6280\u672f\u53ca\u5de5\u5177:<\/p>\n

1.\u524d\u7aef:<\/p>\n

SUI Mobile\u3001\u5fae\u4fe1WEB\u5f00\u53d1\u8005\u5de5\u5177\u4e0e\u6837\u5f0f\u5e93\u3001eclipse\u7b49\u7b49<\/p>\n

2.\u540e\u7aef:<\/p>\n

SpringMVC\u3001Spring\u3001MyBais\u3001Springboot\u3001Redis\u3001Mysql\u4e3b\u4ece\u5e93\u7b49\u7b49<\/p>\n

3.\u90e8\u7f72\u548c\u8fd0\u8425:\u642d\u5efa\u7ebf\u4e0a\u73af\u5883\uff0c\u90e8\u7f72\u9879\u76ee\u3002<\/p>\n

\"java<\/p>\n

4.\u6280\u672f\u50a8\u5907:<\/p>\n

(1).\u638c\u63e1Java Web\u57fa\u7840\u548cMaven\u6784\u5efa\u9879\u76ee;<\/p>\n

(2).\u638c\u63e1Spring\u6846\u67b6\u7684\u57fa\u672c\u77e5\u8bc6;<\/p>\n

5.\u73af\u5883\u51c6\u5907:<\/p>\n

JDK1.8<\/p>\n

Maven3.3.9<\/p>\n

MySQL5.5+<\/p>\n

chrome<\/p>\n

Tomcat8<\/p>\n

Eclipse<\/p>\n

\u4e09. Maven\u9879\u76ee<\/p>\n

1. \u521b\u5efaMaven Project<\/p>\n

(1).\u9009\u62e9\"File\" \/ \u201cNew\u201d \/ \u201cOther\u201d \u547d\u4ee4\uff0c\u70b9\u51fb\"Maven\" \/ \u201cMaven Project\u201d\uff0c\u6253\u5f00\"New Maven Project\"\u5bf9\u8bdd\u6846\u3002\u70b9\u51fb\"Next\"\u3002<\/p>\n

\"java<\/p>\n

(2).\u70b9\u51fb\"Next\"\u3002<\/p>\n

\"java<\/p>\n

(3).\u9009\u62e9\"org.apache.maven.archetypes maven-archetype-webapp 1.0\"\uff0c\u7136\u540e\u70b9\u51fb\"Next\"\u3002<\/p>\n

\"java<\/p>\n

(4).\u70b9\u51fb\"Finish\"\uff0c\u9879\u76ee\u521b\u5efa\u5b8c\u6210\u3002<\/p>\n

\"java<\/p>\n

(5).\u9879\u76ee\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u9009\u62e9\"o2o\u9879\u76ee\u201d \u53f3\u952e\u70b9\u51fb\uff0c\u70b9\u51fb\"Maven\" \/ \u201cProperties\u201d\uff0c\u9009\u62e9\"Java Build Path\"\/\u201cLibraries\u201d\uff0c\u70b9\u51fb\"Add Library\"\u3002<\/p>\n

\"java<\/p>\n

(6).\u9009\u62e9\"Server Runtime\"\uff0c\u70b9\u51fb\"Next\"\u3002<\/p>\n

\"java<\/p>\n

(7).\u9009\u62e9\"Apache Tomcat v8.0\"\uff0c\u70b9\u51fb\"Finish\"\u3002<\/p>\n

\"java<\/p>\n

(8).\u9009\u62e9\"New\" \/ \u201cSource Folder\"\u547d\u4ee4\uff0c\u65b0\u5efa\"src\/test\/resources\"\u5305\uff0c\u70b9\u51fb\"Finish\u201d\u3002<\/p>\n

\"java<\/p>\n

(9).\u9009\u62e9\"o2o\u9879\u76ee\u201d \u53f3\u952e\u70b9\u51fb\uff0c\u70b9\u51fb\"Maven\" \/ \u201cProperties\u201d\uff0c\u9009\u62e9\"Java Build Path\"\/\u201cSource\u201d\uff0c\u9009\u62e9\"src\/test\/resources\"\uff0c\u70b9\u51fb\"Add Folder\"\u3002<\/p>\n

\"java<\/p>\n

(10).\u9879\u76ee\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u9879\u76ee\u7ed3\u6784:<\/p>\n

\"java<\/p>\n

2. pom.xml\u6587\u4ef6\u914d\u7f6e<\/p>\n

(1).pom.xml\u6587\u4ef6<\/p>\n

o2o<\/p>\n

org.apache.maven.plugins<\/p>\n

maven-compiler-plugin<\/p>\n

3.6.1<\/p>\n

1.8<\/p>\n

1.8<\/p>\n

UTF8<\/p>\n

(2).\u9009\u62e9\"o2o\u9879\u76ee\u201d \u53f3\u952e\u70b9\u51fb\uff0c\u70b9\u51fb\"Maven\" \/ \u201cProperties\u201d\uff0c\u9009\u62e9\"Project Facets\"\u3002<\/p>\n

\u5982\u679c\u627e\u4e0d\u5230Project Facets\uff0c\u8bf7\u53c2\u8003: https:\/\/blog.csdn.net\/ShangPanGe\/article\/details\/<\/p>\n

\"java<\/p>\n

(3).\u7531\u4e8eeclipse\u7684bug\u4e0d\u80fd\u66f4\u6539\u4e3a3.1\u7248\u672c\uff0c\u7136\u540e\u6253\u5f00\"o2o\"\u9879\u76ee\u6587\u4ef6\u8def\u5f84: E:\\Users\\ShangPanGe\\workspace-jee\\o2o\\ .settings\u4e0b\u7684org.eclipse.wst.common.project.facet.core.xml\u6587\u4ef6\uff0c\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\u3002<\/p>\n

(4).\u6700\u540e\"Refresh\"(\u6216F5)\u9879\u76ee\u5373\u53ef\u3002<\/p>\n

\"java<\/p>\n

3. web.xml\u6587\u4ef6\u914d\u7f6e<\/p>\n<\/p>\n

xmlns=\"http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\"<\/p>\n

xsi:schemaLocation=\"http:\/\/xmlns.jcp.org\/xml\/ns\/javaee http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\/web-app_3_1.xsd\"<\/p>\n

metadata-complete=\"true\" version=\"3.1\"><\/p>\n

Archetype Created Web Application<\/p>\n

index.jsp<\/p>\n

index.html<\/p>\n

4. \u6d4b\u8bd5\u8fd0\u884c\u9879\u76ee<\/p>\n

index.jsp\u6587\u4ef6:<\/p>\n

Hello World!<\/h3>\n

\u6807\u7b7e\uff1axml,maven,\u5b9e\u6218\u7bc7,Java,\u9879\u76ee,Maven,O2O,\u70b9\u51fb,o2o<\/p>\n

\u6765\u6e90\uff1a https:\/\/blog.csdn.net\/ShangPanGe\/article\/details\/<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"java o2o_Java\u9879\u76ee\u5b9e\u6218\u7bc7\u4e4b\u6821\u56edO2O\u5546\u94fa\u5e73\u53f0-\u5f00\u53d1\u51c6\u5907\u4e00\u6821\u56edO2O\u5546\u94fa\u5e73\u53f0\u4e00.\u9879\u76ee\u4ecb\u7ecd\u6821\u56edo2o\u5e73\u53f0\u662f\u4e00\u4e2a\u65b0\u5174\u7684\u7535\u5b50\u5546\u52a1\u5e73\u53f0\uff0c\u4e3b...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8414"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8414"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8414\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}