Kaynağa Gözat

byh 24/10/30

byh 2 hafta önce
ebeveyn
işleme
32a3a0a428

+ 124 - 0
.idea/uiDesigner.xml

@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+      </item>
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+        <initial-values>
+          <property name="text" value="Button" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="RadioButton" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="CheckBox" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="Label" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
+          <preferred-size width="-1" height="20" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
+      </item>
+    </group>
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 0 - 31
src/gydx/springmybatis/bo/StudentVO.java

@@ -1,31 +0,0 @@
-package gydx.springmybatis.bo;
-
-public class StudentVO {
-    private int id;
-    private String name;
-    private Integer age;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public Integer getAge() {
-        return age;
-    }
-
-    public void setAge(Integer age) {
-        this.age = age;
-    }
-}

+ 0 - 47
src/gydx/springmybatis/controller/StudentController.java

@@ -1,47 +0,0 @@
-package gydx.springmybatis.controller;
-
-import gydx.springmybatis.bo.StudentVO;
-import gydx.springmybatis.service.StudentService;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import javax.annotation.Resource;
-import java.util.List;
-
-@RestController
-@RequestMapping("student")
-public class StudentController {
-    @Resource
-    StudentService studentService;
-
-    @RequestMapping("addStudent")
-    public int addStudent(StudentVO vo){
-        studentService.saveStudent(vo);
-        System.out.println("Hello" +vo.getAge() + "的" + vo.getName());
-
-        return 1;
-    }
-
-
-    @RequestMapping("deleteStudent")
-    public int deleteStudent(StudentVO vo){
-        studentService.deleteStudent(vo);
-        return 1;
-    }
-
-    @RequestMapping("updateStudent")
-    public int updateStudent(StudentVO vo){
-        studentService.updateStudent(vo);
-        return 1;
-
-    }
-
-    @RequestMapping("queryStudent")
-    public List queryStudent(StudentVO vo){
-
-        return studentService.queryStudent(vo);
-
-    }
-    
-
-}

+ 0 - 18
src/gydx/springmybatis/mapper/StudentInterface.java

@@ -1,18 +0,0 @@
-package gydx.springmybatis.mapper;
-
-import gydx.springmybatis.bo.StudentVO;
-import org.springframework.stereotype.Component;
-
-import java.util.List;
-
-@Component
-public interface StudentInterface {
-    public void addStudent(StudentVO vo);
-
-    public void deleteStudent(StudentVO vo);
-
-    public void updateStudent(StudentVO vo);
-
-    public List queryStudent(StudentVO vo);
-
-}

+ 0 - 46
src/gydx/springmybatis/mapper/student.xml

@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="gydx.springmybatis.mapper.StudentInterface">
-    <parameterMap id="svo" type="gydx.springmybatis.bo.StudentVO"></parameterMap>
-    <resultMap id="rvo" type="gydx.springmybatis.bo.StudentVO"></resultMap>
-
-    <insert id="addStudent" parameterMap="svo">
-        insert into student (name,age) values (#{name},#{age})
-    </insert>
-
-    <delete id="deleteStudent" parameterMap="svo">
-        delete from student where id = #{id}
-    </delete>
-
-    <update id="updateStudent" parameterMap="svo">
-        update student
-        <set>
-            <trim suffixOverrides=",">
-                <if test="name != null and name != '' ">
-                    name = #{name},
-                </if>
-                <if test="age != null">
-                    age = #{age},
-                </if>
-            </trim>
-        </set>
-        where id = #{id}
-    </update>
-
-    <select id="queryStudent" parameterMap="svo" resultMap="rvo">
-        select id,name,age from student
-        <where>
-            1=1
-            <if test="name != null and name != '' ">
-                and name = #{name}
-            </if>
-            <if test="age != null">
-                and age = #{age}
-            </if>
-        </where>
-    </select>
-
-
-</mapper>

+ 0 - 17
src/gydx/springmybatis/service/StudentService.java

@@ -1,17 +0,0 @@
-package gydx.springmybatis.service;
-
-import gydx.springmybatis.bo.StudentVO;
-
-import java.util.List;
-
-public interface StudentService {
-    public void saveStudent(StudentVO vo);
-
-    public void deleteStudent(StudentVO vo);
-
-    public void updateStudent(StudentVO vo);
-
-    public List queryStudent(StudentVO vo);
-
-
-}

+ 0 - 38
src/gydx/springmybatis/service/StudentServiceImpl.java

@@ -1,38 +0,0 @@
-package gydx.springmybatis.service;
-
-import gydx.springmybatis.bo.StudentVO;
-import gydx.springmybatis.mapper.StudentInterface;
-import org.springframework.stereotype.Service;
-
-import javax.annotation.Resource;
-import java.util.List;
-
-@Service
-public class StudentServiceImpl implements StudentService{
-    @Resource
-    StudentInterface studentInterface;
-    @Override
-    public void saveStudent(StudentVO vo) {
-        studentInterface.addStudent(vo);
-        System.out.println("save"+vo.getName()+"同学");
-
-    }
-
-    @Override
-    public void deleteStudent(StudentVO vo) {
-        studentInterface.deleteStudent(vo);
-
-    }
-
-    @Override
-    public void updateStudent(StudentVO vo) {
-        studentInterface.updateStudent(vo);
-
-    }
-
-    @Override
-    public List queryStudent(StudentVO vo) {
-        return studentInterface.queryStudent(vo);
-
-    }
-}

+ 40 - 0
src/lsjb/bo/guizeVO/GuiZeVO.java

@@ -0,0 +1,40 @@
+package lsjb.bo.guizeVO;
+
+public class GuiZeVO {
+    private String gzname;
+    private Integer luncishu;
+    private Integer luncitime;
+    private Integer jiangetime;
+
+    public String getGzname() {
+        return gzname;
+    }
+
+    public void setGzname(String gzname) {
+        this.gzname = gzname;
+    }
+
+    public Integer getLuncishu() {
+        return luncishu;
+    }
+
+    public void setLuncishu(Integer luncishu) {
+        this.luncishu = luncishu;
+    }
+
+    public Integer getLuncitime() {
+        return luncitime;
+    }
+
+    public void setLuncitime(Integer luncitime) {
+        this.luncitime = luncitime;
+    }
+
+    public Integer getJiangetime() {
+        return jiangetime;
+    }
+
+    public void setJiangetime(Integer jiangetime) {
+        this.jiangetime = jiangetime;
+    }
+}

+ 48 - 0
src/lsjb/controller/guizeController/GuiZeController.java

@@ -0,0 +1,48 @@
+package lsjb.controller.guizeController;
+
+
+import lsjb.bo.guizeVO.GuiZeVO;
+import lsjb.service.guizeService.GuiZeService;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+@RequestMapping("guize")
+public class GuiZeController {
+    @Resource
+    GuiZeService guiZeService;
+
+    @RequestMapping("addGuiZe")
+    public int addStudent(GuiZeVO vo){
+        guiZeService.saveGuiZe(vo);
+        System.out.println("Hello" + vo.getGzname());
+
+        return 1;
+    }
+
+
+//    @RequestMapping("deleteGuiZe")
+//    public int deleteStudent(GuiZeVO vo){
+//        guiZeService.deleteGuiZe(vo);
+//        return 1;
+//    }
+//
+//    @RequestMapping("updateGuiZe")
+//    public int updateStudent(GuiZeVO vo){
+//        guiZeService.updateGuiZe(vo);
+//        return 1;
+//
+//    }
+//
+//    @RequestMapping("queryGuiZe")
+//    public List queryStudent(GuiZeVO vo){
+//
+//        return guiZeService.queryGuiZe(vo);
+//
+//    }
+
+
+}

+ 10 - 8
src/gydx/springmybatis/gydxSpring.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:context="http://www.springframework.org/schema/context"
@@ -10,7 +10,9 @@
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc.xsd
 ">
-<!--json整合     需要导入 jackson-annotations-*.jar,jackson-core-.jar,jackson-databind-.jar -->
+
+
+    <!--json整合     需要导入 jackson-annotations-*.jar,jackson-core-.jar,jackson-databind-.jar -->
     <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" />
     <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
         <property name="messageConverters">
@@ -37,12 +39,12 @@
 
 
 
-<!--    扫描包下所有类,为添加了@Service、@Component、@Controller、@Repository修饰的类创建对象并存入IOC容器-->
-    <context:component-scan base-package="gydx.springmybatis.controller"></context:component-scan>
+    <!--    扫描包下所有类,为添加了@Service、@Component、@Controller、@Repository修饰的类创建对象并存入IOC容器-->
+    <context:component-scan base-package="lsjb.controller.guizeController"></context:component-scan>
     <mvc:default-servlet-handler></mvc:default-servlet-handler>
     <mvc:annotation-driven></mvc:annotation-driven>
 
-    <context:component-scan base-package="gydx.springmybatis.service"></context:component-scan>
+    <context:component-scan base-package="lsjb.service.guizeService"></context:component-scan>
 
     <bean id="gydxdb" class="org.apache.commons.dbcp2.BasicDataSource">
         <property name="driverClassName" value="com.mysql.cj.jdbc.Driver"></property>
@@ -53,9 +55,9 @@
 
     <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
         <property name="dataSource" ref="gydxdb"></property>
-        <property name="mapperLocations" value="classpath:gydx/springmybatis/mapper/student.xml"></property>
+        <property name="mapperLocations" value="classpath:lsjb/mapper/guizeMapper/guize.xml"></property>
 
-<!--        显示SQL-->
+        <!--        显示SQL-->
         <property name="configuration">
             <bean class="org.apache.ibatis.session.Configuration">
                 <property name="logImpl" value="org.apache.ibatis.logging.stdout.StdOutImpl" />
@@ -65,7 +67,7 @@
 
     <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
         <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"></property>
-        <property name="basePackage" value="gydx.springmybatis.mapper"></property>
+        <property name="basePackage" value="lsjb.mapper.guizeMapper"></property>
     </bean>
 
     <bean id="transactionManger" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">

+ 16 - 0
src/lsjb/mapper/guizeMapper/GuiZeInterface.java

@@ -0,0 +1,16 @@
+package lsjb.mapper.guizeMapper;
+
+import lsjb.bo.guizeVO.GuiZeVO;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+@Component
+public interface GuiZeInterface {
+    public void addGuiZe(GuiZeVO vo);
+
+//    public void deleteGuiZe(GuiZeVO vo);
+//
+//    public void updateGuiZe(GuiZeVO vo);
+//
+//    public List queryGuiZe(GuiZeVO vo);
+}

+ 47 - 0
src/lsjb/mapper/guizeMapper/guize.xml

@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="lsjb.mapper.guizeMapper.GuiZeInterface">
+                                                             <!--    记得改id名-->
+    <parameterMap id="gzvo" type="lsjb.bo.guizeVO.GuiZeVO"></parameterMap>
+    <resultMap id="rvo" type="lsjb.bo.guizeVO.GuiZeVO"></resultMap>
+
+    <insert id="addGuiZe" parameterMap="gzvo">
+        insert into g2_table_guize (gzname,luncishu) values (#{gzname},#{luncishu})
+    </insert>
+
+<!--    <delete id="deleteGuiZe" parameterMap="svo">-->
+<!--        delete from student where id = #{id}-->
+<!--    </delete>-->
+
+<!--    <update id="updateGuiZe" parameterMap="svo">-->
+<!--        update student-->
+<!--        <set>-->
+<!--            <trim suffixOverrides=",">-->
+<!--                <if test="name != null and name != '' ">-->
+<!--                    name = #{name},-->
+<!--                </if>-->
+<!--                <if test="age != null">-->
+<!--                    age = #{age},-->
+<!--                </if>-->
+<!--            </trim>-->
+<!--        </set>-->
+<!--        where id = #{id}-->
+<!--    </update>-->
+
+<!--    <select id="queryGuiZe" parameterMap="svo" resultMap="rvo">-->
+<!--        select id,name,age from student-->
+<!--        <where>-->
+<!--            1=1-->
+<!--            <if test="name != null and name != '' ">-->
+<!--                and name = #{name}-->
+<!--            </if>-->
+<!--            <if test="age != null">-->
+<!--                and age = #{age}-->
+<!--            </if>-->
+<!--        </where>-->
+<!--    </select>-->
+
+
+</mapper>

+ 15 - 0
src/lsjb/service/guizeService/GuiZeService.java

@@ -0,0 +1,15 @@
+package lsjb.service.guizeService;
+
+import lsjb.bo.guizeVO.GuiZeVO;
+
+import java.util.List;
+
+public interface GuiZeService {
+    public void saveGuiZe(GuiZeVO vo);
+//
+//    public void deleteGuiZe(GuiZeVO vo);
+//
+//    public void updateGuiZe(GuiZeVO vo);
+//
+//    public List queryGuiZe(GuiZeVO vo);
+}

+ 38 - 0
src/lsjb/service/guizeService/GuiZeServiceImpl.java

@@ -0,0 +1,38 @@
+package lsjb.service.guizeService;
+
+import lsjb.bo.guizeVO.GuiZeVO;
+import lsjb.mapper.guizeMapper.GuiZeInterface;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Service
+public class GuiZeServiceImpl implements GuiZeService {
+    @Resource
+    GuiZeInterface guiZeInterface;
+    @Override
+    public void saveGuiZe(GuiZeVO vo) {
+        guiZeInterface.addGuiZe(vo);
+        System.out.println("save"+vo.getGzname());
+
+    }
+//
+//    @Override
+//    public void deleteGuiZe(GuiZeVO vo) {
+//        guiZeInterface.deleteGuiZe(vo);
+//
+//    }
+//
+//    @Override
+//    public void updateGuiZe(GuiZeVO vo) {
+//        guiZeInterface.updateGuiZe(vo);
+//
+//    }
+//
+//    @Override
+//    public List queryGuiZe(GuiZeVO vo) {
+//        return guiZeInterface.queryGuiZe(vo);
+//
+//    }
+}

+ 4 - 4
web/WEB-INF/web.xml

@@ -6,20 +6,20 @@
 
 
 <servlet>
-    <servlet-name>gydxmvc</servlet-name>
+    <servlet-name>lsjbmvc</servlet-name>
     <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
 
     <init-param>
         <param-name>contextConfigLocation</param-name>
-        <param-value>classpath:gydx/springmybatis/gydxSpring.xml</param-value>
+        <param-value>classpath:lsjb/lsjbSpring.xml</param-value>
     </init-param>
 
     <load-on-startup>1</load-on-startup>
 </servlet>
 
     <servlet-mapping>
-        <servlet-name>gydxmvc</servlet-name>
-        <url-pattern>*.gydx</url-pattern>
+        <servlet-name>lsjbmvc</servlet-name>
+        <url-pattern>*.lsjb</url-pattern>
     </servlet-mapping>
 
 

+ 3 - 3
web/index.jsp

@@ -11,10 +11,10 @@
     <title>$Title$</title>
 </head>
 <body>
-<form action="./student/addStudent.gydx">
-  <input type="text" name="name">
+<form action="./guize/addGuiZe.lsjb">
+  <input type="text" name="gzname">
   <br>
-  <input type="text" name="age">
+  <input type="text" name="luncishu">
   <br>
   <input type="submit">
 </form>