From d6b06dfd0404d9a49ef1564211b091a8ff8af410 Mon Sep 17 00:00:00 2001 From: zxy19971014 <1094127243@qq.com> Date: Mon, 14 Jan 2019 17:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=92=8C=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 2 +- 后端的都放着里面/yhSearch/.classpath | 42 ++++---- 后端的都放着里面/yhSearch/.project | 84 +++++++-------- .../yhSearch/.settings/.jsdtscope | 26 ++--- .../.settings/org.eclipse.jdt.core.prefs | 16 +-- .../.settings/org.eclipse.m2e.core.prefs | 8 +- .../org.eclipse.wst.common.component | 20 ++-- ....eclipse.wst.common.project.facet.core.xml | 14 +-- .../org.eclipse.wst.validation.prefs | 4 +- 后端的都放着里面/yhSearch/pom.xml | 88 ++++++++------- .../main/java/controller/yhController.java | 83 ++++++++------ .../yhSearch/src/main/java/domain/yhPO.java | 70 ++++++------ .../src/main/java/mapperDAO/yhMapperDao.java | 32 +++--- .../src/main/java/service/yhService.java | 26 ++--- .../main/java/serviceimpl/yhServiceImpl.java | 62 ++++++----- .../src/main/resources/generatorConfig.xml | 102 +++++++++--------- .../src/main/resources/mapper/yhMapper.xml | 50 ++++----- .../yhSearch/src/main/resources/mybatis.xml | 8 +- .../src/main/resources/spring-context.xml | 20 ++-- .../src/main/resources/spring-mybatis.xml | 98 ++++++++--------- .../yhSearch/src/main/webapp/WEB-INF/web.xml | 19 +++- .../classes/controller/yhController.class | Bin 1093 -> 2152 bytes .../target/classes/generatorConfig.xml | 102 +++++++++--------- .../target/classes/mapper/yhMapper.xml | 50 ++++----- .../classes/mapperDAO/yhMapperDao.class | Bin 315 -> 320 bytes .../yhSearch/target/classes/mybatis.xml | 8 +- .../target/classes/service/yhService.class | Bin 196 -> 201 bytes .../classes/serviceimpl/yhServiceImpl.class | Bin 953 -> 950 bytes .../target/classes/spring-context.xml | 20 ++-- .../target/classes/spring-mybatis.xml | 98 ++++++++--------- .../web-resources/META-INF/MANIFEST.MF | 10 +- .../maven/yonghu/yhSearch/pom.properties | 14 +-- .../META-INF/maven/yonghu/yhSearch/pom.xml | 88 ++++++++------- 后端的都放着里面/zx.sql | 6 +- 34 files changed, 660 insertions(+), 610 deletions(-) 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 be52cadbf34eea915e8d8f0aabd1b78429c6697a..c97581c0992f2f4cdd657546e229824a0ea002d3 100644 GIT binary patch literal 2152 zcmb7F+j1L45IrO7W_f*6VvMkJF-aWX#TN^-H~PS zzzg{gswh%CQlU~#8LD{Xf&YNYS5Wk5W!Z_HP(1AHOi#~r_vzC;fBy69?*OLYMG#=< zH-#fzVcXo*>!tbDB7z`8&$h8+=(gb$^-OM?o06fuUdnQJ$1*v?skG-$>10!wVn}RM z9ch*MmgQMFo6k9pkcPB`<1tL9g7OXgFmctPyV->S0RXbN<|V|*fn{jfq4W8N>szBCG?d{ zYv)yn)_6|Ok+(Q2IfqYdtS0h+vJ>Wi&`?{T1Cr= z;xYppQ*MlE7{fSmm#$vsMxMJ2mruC$cy5%PB*Wl|cGkEoiM$tu&JbN%*qm6;WH;Nv zFr^`ca0lMS`w_gy(0i;*G<<*$89EjT=xcS)p-NyFI>DvUbY7GV%b^Ne&!i&wh~cy; z%6d_VqRsW9Cmel=h8U*NqlT**W0)vQpP*ew| z%!a9&a#(3m9fmz_xMoT9jbmj`c({IP6B!%ZuPYJ12N2I(?pF(gpV!wNYIX$bY>GY9 z|6U*yL%^f9^-@Bcuo4YgiEfEvSy6ROzG$gd*n9M~m{j30jGx%vi9;?Il8RYBd|y%+ zqDpC_mx%mOEpQbN#4V;6~a`ZM~6#-5@32~7g%rBR&*P9sjE z<}2V7t<~*)c!TWp(>zG4Hyc*EX!aI;vAbX%2GrGTnzWP$kCO4heVh#-8NV1G-p5EA z%_icLjoH{!yfeO!D*?;|6Tv?)`x~b3Ji|;PxQEnC=ofsF2<>4Z8DI6U*hiXSCY%T> z@p>Y>hg)j+{3o0v-S}Ol>+6IPq4<}3xUUrRhmox|VoDGu12j8>L7c@1^|U0;Lt!{i zUGq9FAd8E{<4d@YVdP1ph;ax^phlYCViMoci?7hxXrTM3i4H{zjshW}W<`_;Pc^f! tO=yhZ9v;9Z+)@}tne;+rrGzEB@%{V?U*uP_VqSNB|Uwc zWRp+5(AAJupEU`Bd3B9DkPvz0fnB830gM+EZgUGySb9@V!;GrB%0j7}s@Z`yFpD|m j2q;P_HA-FmqiQPmOFbNeEsnuzSW`_J)(7DJ_zmC(kWy{H 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 01d8f6ea85817550bfc17ed23e5ca0a2e148258b..c46db4b76aca08b6ae7d43400fe70e974938703f 100644 GIT binary patch delta 22 dcmdnZbbx7sEf2R_W?qU@WpQ3&Zt6sr?*Lds2!H?p delta 17 YcmX@Ww3}&yEjwFrYGP4x#zfEW05%8)p#T5? 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 53c4612e82096efa9c98ee398f3ad8fc49460feb..a9026c10c224638d73f49ecdcbff979de2cf41d6 100644 GIT binary patch delta 22 dcmX@Yc#?5~B@ee-W?qU@WpQ3&Zt6sb764e*2o(ST delta 17 YcmX@fc!Y6+B|BSjYGP4x#zfZ^05)F+HUIzs diff --git a/后端的都放着里面/yhSearch/target/classes/serviceimpl/yhServiceImpl.class b/后端的都放着里面/yhSearch/target/classes/serviceimpl/yhServiceImpl.class index e47a440880ba4d966c86c686ed33f4aca39d2586..cabe0911512fc6fe2a45f18064689cb87c5b4ed7 100644 GIT binary patch delta 388 zcmZ9H%SyvQ6o&sZ)kZVprD|I5mwHR9PznkzM5&59?M~c=CeVOQOXH?1pTI@Q-e*vd zN?rH>zKCxjo=mz3F6P`g|9Acw8Uw@p{{8#{P(`V4-iunj?+y-SuX*EiI$rn6X%n)i ze&9cz5i)k^jxcuFc0Cgr%qdJ`COV;8C9nO!z37F3)AFKcvX7P(3`|I@V%@+R!D=PE zTD_8DD-^KE2SU&3Hk#27RimPKd75H4#cYnV?5)C?IFFY=Y^ zmD@BTrxE#N4c3EZumT&{WC~#m#S!gTOZmco8-)~u azdJ$@wz0!ffn6=!!(?oQC;R+V2>TCGS}~~r delta 392 zcmZ9GO)mpc6o%h(%Uo`+kJ45Zr9P)4($rdrRP3-5JDHeCIt!hqW5dR8Xl5^d0*O>= z;RpClBF>!=UyJjZ^FHV8%YjsHA1|)}8gP2*Ot@js>sPFupdDQ85;At}lrYo`JzpV% zoW>Z&<3l=@R^+?gi&lJ3_V%oX#7Gu%Sdf?}6fWIP$L}8OpVY5gM``bd8b!=7EIJRo z_?;Tc2v#(fP>r|5-L2#YWcZvX*ioG;aUFJ^G5N@iz!YaIS!zskuhRqMQQ(Qp1I|Xg z$Jc^u)_Fo{bAYnI1CPHExdc&6&yc@K7_2}Ai%cP7?2Fd?M_U&7F{Bbg2@2)E#Bbm# V))*wPo;cXRs4>PHn?pyaeFAb@E!qG8 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', '文学名著类');