diff --git a/project.config.json b/project.config.json index 937d300..b9d25f5 100644 --- a/project.config.json +++ b/project.config.json @@ -13,7 +13,7 @@ "compileType": "miniprogram", "libVersion": "2.4.0", "appid": "wxb280d1925541c356", - "projectname": "%E7%9C%9F%E9%A6%9913", + "projectname": "33", "debugOptions": { "hidedInDevtools": [] }, diff --git a/后端的都放着里面/yhSearch/.classpath b/后端的都放着里面/yhSearch/.classpath index da46b03..95b6a42 100644 --- a/后端的都放着里面/yhSearch/.classpath +++ b/后端的都放着里面/yhSearch/.classpath @@ -1,21 +1,21 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/.project b/后端的都放着里面/yhSearch/.project index 060771a..e70f5df 100644 --- a/后端的都放着里面/yhSearch/.project +++ b/后端的都放着里面/yhSearch/.project @@ -1,42 +1,42 @@ - - - yhSearch - - - - - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature - - + + + yhSearch + + + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/后端的都放着里面/yhSearch/.settings/.jsdtscope b/后端的都放着里面/yhSearch/.settings/.jsdtscope index b72a6a4..585c967 100644 --- a/后端的都放着里面/yhSearch/.settings/.jsdtscope +++ b/后端的都放着里面/yhSearch/.settings/.jsdtscope @@ -1,13 +1,13 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs b/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs index 45a6e0e..dc0892a 100644 --- a/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs @@ -1,8 +1,8 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.5 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs b/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs index f897a7f..14b697b 100644 --- a/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs @@ -1,4 +1,4 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.component b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.component index a63c32b..ad87084 100644 --- a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.component +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.component @@ -1,10 +1,10 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.project.facet.core.xml b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.project.facet.core.xml index d74c55e..593353a 100644 --- a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs index 04cad8c..6f1cba6 100644 --- a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs @@ -1,2 +1,2 @@ -disabled=06target -eclipse.preferences.version=1 +disabled=06target +eclipse.preferences.version=1 diff --git a/后端的都放着里面/yhSearch/pom.xml b/后端的都放着里面/yhSearch/pom.xml index 3cf0e04..f87deb5 100644 --- a/后端的都放着里面/yhSearch/pom.xml +++ b/后端的都放着里面/yhSearch/pom.xml @@ -14,33 +14,40 @@ 4.3.10.RELEASE - - - - mysql - mysql-connector-java - 5.1.46 + + + com.alibaba + fastjson + 1.2.44 + + com.google.code.gson + gson + 2.8.2 + + junit junit 3.8.1 test - - - org.mybatis.generator - mybatis-generator-core - 1.3.5 - + mysql mysql-connector-java 5.1.46 - - + + + + + org.mybatis.generator + mybatis-generator-core + 1.3.5 + + + org.springframework spring-core @@ -92,8 +99,7 @@ ${spring.version} test - - + org.mybatis mybatis @@ -104,6 +110,7 @@ mybatis-spring 1.3.1 + c3p0 c3p0 @@ -114,19 +121,23 @@ commons-dbcp 1.4 - - + + - junit - junit - 4.12 - test + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + javax.servlet + jstl + 1.2 - booksService - - + + org.apache.maven.plugins maven-compiler-plugin @@ -137,18 +148,17 @@ true - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.3.5 - - - ${basedir}/src/main/resources/generatorConfig.xml - true - - - - + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + ${basedir}/src/main/resources/generatorConfig.xml + true + + + + zxbook diff --git a/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java b/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java index 73225d2..40a92f9 100644 --- a/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java +++ b/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java @@ -1,32 +1,51 @@ -package controller; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; - -import domain.yhPO; -import service.yhService; -@Controller -public class yhController { - @Autowired@Qualifier("yhServiceImpl") - private yhService yhService; - - @RequestMapping("/search") - public String search(Model model,String s_id){ - yhPO yhPO=yhService.search(s_id); - model.addAttribute("s_id", yhPO.getS_id()); - model.addAttribute("s_name", yhPO.getS_name()); - model.addAttribute("s_password", yhPO.getS_password()); - - } - - @RequestMapping("/update") - public String update(yhPO yhPO){ - yhService.update(yhPO); - - } - - -} +package controller; + +import java.io.IOException; +import java.io.PrintWriter; +import java.io.Writer; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +import com.google.gson.Gson; + +import domain.yhPO; +import service.yhService; +@Controller +public class yhController { + @Autowired@Qualifier("yhServiceImpl") + private yhService yhService; + @RequestMapping("find2") + public void find1(String search,HttpServletRequest request, HttpServletResponse response) throws IOException { + response.setContentType("text/html;charset=utf-8"); + /* Ӧͷajax */ + response.setHeader("Access-Control-Allow-Origin", "*"); + /* Ǻűʾе󶼿Խܣ */ + response.setHeader("Access-Control-Allow-Methods", "GET,POST"); + yhPO yhPO=this.yhService.FindBysname(search); + if(yhPO!=null) { + String ss = new Gson().toJson(yhPO); + System.out.println(ss); + response.setContentType("text/html;charset=UTF-8"); + PrintWriter out = response.getWriter(); + out.print(ss); + out.flush(); + out.close(); + + } + else + { + System.out.println("ѯʧ"); + Writer out = response.getWriter(); + out.write("zhaobudao"); + out.flush(); + } + + } + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java b/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java index 36cc313..c08a55b 100644 --- a/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java +++ b/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java @@ -1,35 +1,35 @@ -package domain; -import java.io.Serializable; -public class yhPO implements Serializable { - private String s_id; - private String s_name; - private String s_password; - - private static final long serialVersionUID = 1L; - - public String getS_id() { - return s_id; - } - - public void setS_id(String s_id) { - this.s_id = s_id; - } - - public String getS_name() { - return s_name; - } - - public void setS_name(String s_name) { - this.s_name = s_name; - } - - public String getS_password() { - return s_password; - } - - public void setS_password(String s_password) { - this.s_password = s_password; - } - - -} +package domain; +import java.io.Serializable; +public class yhPO implements Serializable { + private String s_id; + private String s_name; + private String s_password; + + private static final long serialVersionUID = 1L; + + public String getS_id() { + return s_id; + } + + public void setS_id(String s_id) { + this.s_id = s_id; + } + + public String getS_name() { + return s_name; + } + + public void setS_name(String s_name) { + this.s_name = s_name; + } + + public String getS_password() { + return s_password; + } + + public void setS_password(String s_password) { + this.s_password = s_password; + } + + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java b/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java index 3415cb1..e6f67a0 100644 --- a/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java +++ b/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java @@ -1,16 +1,16 @@ -package mapperDAO; - - - -import org.springframework.stereotype.Repository; - -import domain.yhPO; -@Repository("yhMapperDao") -public interface yhMapperDao { - - public yhPO search(String s_id); - - - public void update(yhPO yhPO); - -} +package mapperDAO; + + + +import org.springframework.stereotype.Repository; + +import domain.yhPO; +@Repository("yhMapperDao") +public interface yhMapperDao { + + public yhPO FindBysname(String search ); + + + public void update(yhPO yhPO); + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/service/yhService.java b/后端的都放着里面/yhSearch/src/main/java/service/yhService.java index 9331967..084d48c 100644 --- a/后端的都放着里面/yhSearch/src/main/java/service/yhService.java +++ b/后端的都放着里面/yhSearch/src/main/java/service/yhService.java @@ -1,13 +1,13 @@ -package service; - -import domain.yhPO; - - - -public interface yhService { - - public yhPO search(String bs_id); - - public void update(yhPO yhpo); - -} +package service; + +import domain.yhPO; + + + +public interface yhService { + + public yhPO FindBysname(String search ); + + public void update(yhPO yhpo); + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java b/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java index 1ea55cf..4cf925a 100644 --- a/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java +++ b/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java @@ -1,32 +1,30 @@ -package serviceimpl; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.stereotype.Component; - -import domain.yhPO; -import mapperDAO.yhMapperDao; -import service.yhService; - -@Component("yhServiceImpl") -public class yhServiceImpl implements yhService{ - @Autowired@Qualifier("yhMapperDao") - private yhMapperDao yhMapperDao; - - public yhPO search(String s_id) { - return this.yhMapperDao.search(s_id); - - } - - - public void update(yhPO yhpo) { - // TODO Auto-generated method stub - yhMapperDao.update(yhpo); - - } - - - - - -} +package serviceimpl; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Component; + +import domain.yhPO; +import service.yhService; +import mapperDAO.yhMapperDao; +@Component("yhServiceImpl") +public class yhServiceImpl implements yhService{ + @Autowired@Qualifier("yhMapperDao") + private yhMapperDao yhMapperDAO; + + public yhPO FindBysname(String search) { + // TODO Auto-generated method stub + return this.yhMapperDAO.FindBysname(search); + } + + public void update(yhPO yhpo) { + // TODO Auto-generated method stub + + } + + + + + + +} diff --git a/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml b/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml index 3b321a6..874e735 100644 --- a/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml +++ b/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
\ No newline at end of file diff --git a/后端的都放着里面/yhSearch/src/main/resources/mapper/yhMapper.xml b/后端的都放着里面/yhSearch/src/main/resources/mapper/yhMapper.xml index ea8eb23..bd83761 100644 --- a/后端的都放着里面/yhSearch/src/main/resources/mapper/yhMapper.xml +++ b/后端的都放着里面/yhSearch/src/main/resources/mapper/yhMapper.xml @@ -1,26 +1,26 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml b/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml index 60a680b..27b1f5e 100644 --- a/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml +++ b/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/src/main/resources/spring-context.xml b/后端的都放着里面/yhSearch/src/main/resources/spring-context.xml index 34a92db..b674982 100644 --- a/后端的都放着里面/yhSearch/src/main/resources/spring-context.xml +++ b/后端的都放着里面/yhSearch/src/main/resources/spring-context.xml @@ -1,11 +1,11 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml b/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml index 35dbc99..0c035b6 100644 --- a/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml +++ b/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml @@ -1,51 +1,51 @@ - - + - - - - - - - - - - - - - - - - - - - - dialect=mysql - reasonable=true - - - - - - - - - - - - - - - - - - + http://www.springframework.org/schema/tx + http://www.springframework.org/schema/tx/spring-tx-4.3.xsd"> + + + + + + + + + + + + + + + + + + + + dialect=mysql + reasonable=true + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml b/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml index 9f88c1f..eddd9a8 100644 --- a/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml +++ b/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml @@ -1,7 +1,20 @@ - - Archetype Created Web Application - + Archetype Created Web Application + + + appServlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:spring-*.xml + + 1 + + + appServlet + / + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/controller/yhController.class b/后端的都放着里面/yhSearch/target/classes/controller/yhController.class index be52cad..c97581c 100644 Binary files a/后端的都放着里面/yhSearch/target/classes/controller/yhController.class and b/后端的都放着里面/yhSearch/target/classes/controller/yhController.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml b/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml index 3b321a6..874e735 100644 --- a/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml +++ b/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
\ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml b/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml index ea8eb23..bd83761 100644 --- a/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml +++ b/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml @@ -1,26 +1,26 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class b/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class index 01d8f6e..c46db4b 100644 Binary files a/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class and b/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/mybatis.xml b/后端的都放着里面/yhSearch/target/classes/mybatis.xml index 60a680b..27b1f5e 100644 --- a/后端的都放着里面/yhSearch/target/classes/mybatis.xml +++ b/后端的都放着里面/yhSearch/target/classes/mybatis.xml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/service/yhService.class b/后端的都放着里面/yhSearch/target/classes/service/yhService.class index 53c4612..a9026c1 100644 Binary files a/后端的都放着里面/yhSearch/target/classes/service/yhService.class and b/后端的都放着里面/yhSearch/target/classes/service/yhService.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/serviceimpl/yhServiceImpl.class b/后端的都放着里面/yhSearch/target/classes/serviceimpl/yhServiceImpl.class index e47a440..cabe091 100644 Binary files a/后端的都放着里面/yhSearch/target/classes/serviceimpl/yhServiceImpl.class and b/后端的都放着里面/yhSearch/target/classes/serviceimpl/yhServiceImpl.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/spring-context.xml b/后端的都放着里面/yhSearch/target/classes/spring-context.xml index 34a92db..b674982 100644 --- a/后端的都放着里面/yhSearch/target/classes/spring-context.xml +++ b/后端的都放着里面/yhSearch/target/classes/spring-context.xml @@ -1,11 +1,11 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml b/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml index 35dbc99..0c035b6 100644 --- a/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml +++ b/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml @@ -1,51 +1,51 @@ - - + - - - - - - - - - - - - - - - - - - - - dialect=mysql - reasonable=true - - - - - - - - - - - - - - - - - - + http://www.springframework.org/schema/tx + http://www.springframework.org/schema/tx/spring-tx-4.3.xsd"> + + + + + + + + + + + + + + + + + + + + dialect=mysql + reasonable=true + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF index f44188e..d2ae5d1 100644 --- a/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF +++ b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -1,5 +1,5 @@ -Manifest-Version: 1.0 -Built-By: yuanhangpc -Build-Jdk: 1.8.0_152 -Created-By: Maven Integration for Eclipse - +Manifest-Version: 1.0 +Built-By: yuanhangpc +Build-Jdk: 1.8.0_152 +Created-By: Maven Integration for Eclipse + diff --git a/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.properties b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.properties index 418fb8c..4bad788 100644 --- a/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.properties +++ b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.properties @@ -1,7 +1,7 @@ -#Generated by Maven Integration for Eclipse -#Sat Jan 12 16:17:25 CST 2019 -version=0.0.1-SNAPSHOT -groupId=yonghu -m2e.projectName=yhSearch -m2e.projectLocation=H\:\\sts-bundle\\yhSearch -artifactId=yhSearch +#Generated by Maven Integration for Eclipse +#Mon Jan 14 16:52:07 CST 2019 +version=0.0.1-SNAPSHOT +groupId=yonghu +m2e.projectName=yhSearch +m2e.projectLocation=H\:\\sts-bundle\\yhSearch +artifactId=yhSearch diff --git a/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.xml b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.xml index 3cf0e04..f87deb5 100644 --- a/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.xml +++ b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.xml @@ -14,33 +14,40 @@ 4.3.10.RELEASE - - - - mysql - mysql-connector-java - 5.1.46 + + + com.alibaba + fastjson + 1.2.44 + + com.google.code.gson + gson + 2.8.2 + + junit junit 3.8.1 test - - - org.mybatis.generator - mybatis-generator-core - 1.3.5 - + mysql mysql-connector-java 5.1.46 - - + + + + + org.mybatis.generator + mybatis-generator-core + 1.3.5 + + + org.springframework spring-core @@ -92,8 +99,7 @@ ${spring.version} test - - + org.mybatis mybatis @@ -104,6 +110,7 @@ mybatis-spring 1.3.1 + c3p0 c3p0 @@ -114,19 +121,23 @@ commons-dbcp 1.4 - - + + - junit - junit - 4.12 - test + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + javax.servlet + jstl + 1.2 - booksService - - + + org.apache.maven.plugins maven-compiler-plugin @@ -137,18 +148,17 @@ true - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.3.5 - - - ${basedir}/src/main/resources/generatorConfig.xml - true - - - - + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + ${basedir}/src/main/resources/generatorConfig.xml + true + + + + zxbook diff --git a/后端的都放着里面/zx.sql b/后端的都放着里面/zx.sql index 3f2d0be..5086745 100644 --- a/后端的都放着里面/zx.sql +++ b/后端的都放着里面/zx.sql @@ -3,14 +3,14 @@ Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50639 -Source Host : localhost:3306 +Source Host : 127.0.0.1:3306 Source Database : zx Target Server Type : MYSQL Target Server Version : 50639 File Encoding : 65001 -Date: 2019-01-14 15:20:33 +Date: 2019-01-14 17:31:38 */ SET FOREIGN_KEY_CHECKS=0; @@ -31,7 +31,7 @@ CREATE TABLE `book` ( -- ---------------------------- -- Records of book -- ---------------------------- -INSERT INTO `book` VALUES ('1', '《四书五经合集》', '古代多人', '20', '文学名著类'); +INSERT INTO `book` VALUES ('1', '四书五经合集', '古代多人', '20', '文学名著类'); INSERT INTO `book` VALUES ('10', '《格列佛游记》', '佚名', '18', '文学名著类'); INSERT INTO `book` VALUES ('11', '《洛丽塔》', '佚名', '18', '文学名著类'); INSERT INTO `book` VALUES ('12', '《林徽因传》', '张清平', '16', '文学名著类');