diff --git a/后端的都放着里面/yhSearch/.classpath b/后端的都放着里面/yhSearch/.classpath new file mode 100644 index 0000000..da46b03 --- /dev/null +++ b/后端的都放着里面/yhSearch/.classpath @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/.project b/后端的都放着里面/yhSearch/.project new file mode 100644 index 0000000..060771a --- /dev/null +++ b/后端的都放着里面/yhSearch/.project @@ -0,0 +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 + + diff --git a/后端的都放着里面/yhSearch/.settings/.jsdtscope b/后端的都放着里面/yhSearch/.settings/.jsdtscope new file mode 100644 index 0000000..b72a6a4 --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/.jsdtscope @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs b/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..45a6e0e --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +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 diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs b/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +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 new file mode 100644 index 0000000..a63c32b --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.component @@ -0,0 +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 new file mode 100644 index 0000000..d74c55e --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.jsdt.ui.superType.container b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.jsdt.ui.superType.name b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 0000000..04cad8c --- /dev/null +++ b/后端的都放着里面/yhSearch/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06target +eclipse.preferences.version=1 diff --git a/后端的都放着里面/yhSearch/pom.xml b/后端的都放着里面/yhSearch/pom.xml new file mode 100644 index 0000000..3cf0e04 --- /dev/null +++ b/后端的都放着里面/yhSearch/pom.xml @@ -0,0 +1,154 @@ + + 4.0.0 + yonghu + yhSearch + war + 0.0.1-SNAPSHOT + yhSearch Maven Webapp + http://maven.apache.org + + + UTF-8 + UTF-8 + + 4.3.10.RELEASE + + + + + mysql + mysql-connector-java + 5.1.46 + + + junit + junit + 3.8.1 + test + + + + org.mybatis.generator + mybatis-generator-core + 1.3.5 + + + mysql + mysql-connector-java + 5.1.46 + + + + + org.springframework + spring-core + ${spring.version} + + + + org.springframework + spring-beans + ${spring.version} + + + + org.springframework + spring-context + ${spring.version} + + + + org.springframework + spring-jdbc + ${spring.version} + + + + org.springframework + spring-tx + ${spring.version} + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-webmvc + ${spring.version} + + + + org.springframework + spring-test + ${spring.version} + test + + + + + org.mybatis + mybatis + 3.4.2 + + + org.mybatis + mybatis-spring + 1.3.1 + + + c3p0 + c3p0 + 0.9.1.2 + + + commons-dbcp + commons-dbcp + 1.4 + + + + + junit + junit + 4.12 + test + + + + booksService + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + UTF8 + true + + + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + ${basedir}/src/main/resources/generatorConfig.xml + true + + + + + + diff --git a/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java b/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java new file mode 100644 index 0000000..73225d2 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/java/controller/yhController.java @@ -0,0 +1,32 @@ +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); + + } + + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java b/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java new file mode 100644 index 0000000..36cc313 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/java/domain/yhPO.java @@ -0,0 +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; + } + + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java b/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java new file mode 100644 index 0000000..3415cb1 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/java/mapperDAO/yhMapperDao.java @@ -0,0 +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); + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/service/yhService.java b/后端的都放着里面/yhSearch/src/main/java/service/yhService.java new file mode 100644 index 0000000..9331967 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/java/service/yhService.java @@ -0,0 +1,13 @@ +package service; + +import domain.yhPO; + + + +public interface yhService { + + public yhPO search(String bs_id); + + public void update(yhPO yhpo); + +} diff --git a/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java b/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java new file mode 100644 index 0000000..1ea55cf --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/java/serviceimpl/yhServiceImpl.java @@ -0,0 +1,32 @@ +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); + + } + + + + + +} diff --git a/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml b/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml new file mode 100644 index 0000000..3b321a6 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/resources/generatorConfig.xml @@ -0,0 +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 new file mode 100644 index 0000000..ea8eb23 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/resources/mapper/yhMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml b/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml new file mode 100644 index 0000000..60a680b --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/resources/mybatis.xml @@ -0,0 +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 new file mode 100644 index 0000000..34a92db --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/resources/spring-context.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/src/main/resources/spring-mvc.xml b/后端的都放着里面/yhSearch/src/main/resources/spring-mvc.xml new file mode 100644 index 0000000..c1090a2 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/resources/spring-mvc.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml b/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml new file mode 100644 index 0000000..35dbc99 --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/resources/spring-mybatis.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + dialect=mysql + reasonable=true + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml b/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ b/后端的都放着里面/yhSearch/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/后端的都放着里面/yhSearch/target/classes/controller/yhController.class b/后端的都放着里面/yhSearch/target/classes/controller/yhController.class new file mode 100644 index 0000000..be52cad Binary files /dev/null and b/后端的都放着里面/yhSearch/target/classes/controller/yhController.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/domain/yhPO.class b/后端的都放着里面/yhSearch/target/classes/domain/yhPO.class new file mode 100644 index 0000000..24bb204 Binary files /dev/null and b/后端的都放着里面/yhSearch/target/classes/domain/yhPO.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml b/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml new file mode 100644 index 0000000..3b321a6 --- /dev/null +++ b/后端的都放着里面/yhSearch/target/classes/generatorConfig.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
\ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml b/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml new file mode 100644 index 0000000..ea8eb23 --- /dev/null +++ b/后端的都放着里面/yhSearch/target/classes/mapper/yhMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class b/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class new file mode 100644 index 0000000..01d8f6e Binary files /dev/null and b/后端的都放着里面/yhSearch/target/classes/mapperDAO/yhMapperDao.class differ diff --git a/后端的都放着里面/yhSearch/target/classes/mybatis.xml b/后端的都放着里面/yhSearch/target/classes/mybatis.xml new file mode 100644 index 0000000..60a680b --- /dev/null +++ b/后端的都放着里面/yhSearch/target/classes/mybatis.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/service/yhService.class b/后端的都放着里面/yhSearch/target/classes/service/yhService.class new file mode 100644 index 0000000..53c4612 Binary files /dev/null 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 new file mode 100644 index 0000000..e47a440 Binary files /dev/null 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 new file mode 100644 index 0000000..34a92db --- /dev/null +++ b/后端的都放着里面/yhSearch/target/classes/spring-context.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/yhSearch/target/classes/spring-mvc.xml b/后端的都放着里面/yhSearch/target/classes/spring-mvc.xml new file mode 100644 index 0000000..c1090a2 --- /dev/null +++ b/后端的都放着里面/yhSearch/target/classes/spring-mvc.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml b/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml new file mode 100644 index 0000000..35dbc99 --- /dev/null +++ b/后端的都放着里面/yhSearch/target/classes/spring-mybatis.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000..f44188e --- /dev/null +++ b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +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 new file mode 100644 index 0000000..418fb8c --- /dev/null +++ b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.properties @@ -0,0 +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 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 new file mode 100644 index 0000000..3cf0e04 --- /dev/null +++ b/后端的都放着里面/yhSearch/target/m2e-wtp/web-resources/META-INF/maven/yonghu/yhSearch/pom.xml @@ -0,0 +1,154 @@ + + 4.0.0 + yonghu + yhSearch + war + 0.0.1-SNAPSHOT + yhSearch Maven Webapp + http://maven.apache.org + + + UTF-8 + UTF-8 + + 4.3.10.RELEASE + + + + + mysql + mysql-connector-java + 5.1.46 + + + junit + junit + 3.8.1 + test + + + + org.mybatis.generator + mybatis-generator-core + 1.3.5 + + + mysql + mysql-connector-java + 5.1.46 + + + + + org.springframework + spring-core + ${spring.version} + + + + org.springframework + spring-beans + ${spring.version} + + + + org.springframework + spring-context + ${spring.version} + + + + org.springframework + spring-jdbc + ${spring.version} + + + + org.springframework + spring-tx + ${spring.version} + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-webmvc + ${spring.version} + + + + org.springframework + spring-test + ${spring.version} + test + + + + + org.mybatis + mybatis + 3.4.2 + + + org.mybatis + mybatis-spring + 1.3.1 + + + c3p0 + c3p0 + 0.9.1.2 + + + commons-dbcp + commons-dbcp + 1.4 + + + + + junit + junit + 4.12 + test + + + + booksService + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + UTF8 + true + + + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + ${basedir}/src/main/resources/generatorConfig.xml + true + + + + + +