diff --git a/project2/.idea/artifacts/project2_war_exploded.xml b/project2/.idea/artifacts/project2_war_exploded.xml index 7143a7d..da8803b 100644 --- a/project2/.idea/artifacts/project2_war_exploded.xml +++ b/project2/.idea/artifacts/project2_war_exploded.xml @@ -19,17 +19,12 @@ - - - - - @@ -48,6 +43,7 @@ + diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/applicationContext.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/applicationContext.xml index 1af98d1..3ad282e 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/applicationContext.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/applicationContext.xml @@ -6,6 +6,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd"> + diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/log4j.properties b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000..ba59947 --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/log4j.properties @@ -0,0 +1,11 @@ +log4j.rootLogger=INFO, stdout + +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n + +log4j.logger.your.package.name=INFO, sql + +log4j.appender.sql=org.apache.log4j.ConsoleAppender +log4j.appender.sql.layout=org.apache.log4j.PatternLayout +log4j.appender.sql.layout.ConversionPattern=%d [%t] %-5p %c - %m%n diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/log4j2.properties b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/log4j2.properties new file mode 100644 index 0000000..906ccfd --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/log4j2.properties @@ -0,0 +1,10 @@ +status = warn + +appender.console.type = Console +appender.console.name = ConsoleAppender +appender.console.target = SYSTEM_OUT +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n + +rootLogger.level = debug +rootLogger.appenderRef.console.ref = ConsoleAppender diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml index 9de3184..1e1bbed 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/TeacherMapper.xml @@ -38,11 +38,11 @@ AND sex = #{sex} - - AND c.CourseID = #{course.courseID} + + AND c.CourseID = #{course.CourseID} - AND c.CourseName LIKE CONCAT('%', #{course.courseName}, '%') + AND c.CourseName LIKE CONCAT('%', #{course.CourseName}, '%') diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml index 6f46284..3aa3c98 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml @@ -3,6 +3,9 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> + + + @@ -17,4 +20,5 @@ + diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/lib/log4j-1.2.17.jar b/project2/out/artifacts/project2_war_exploded/WEB-INF/lib/log4j-1.2.17.jar new file mode 100644 index 0000000..1d425cf Binary files /dev/null and b/project2/out/artifacts/project2_war_exploded/WEB-INF/lib/log4j-1.2.17.jar differ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/teachermanage.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/teachermanage.jsp index 98585b0..abd1bb9 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/teachermanage.jsp +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/teachermanage.jsp @@ -322,16 +322,17 @@ - - - 性别 - - 请选择性别 - 男 - 女 - - - + <%-- 修改性别什么鬼--%> + <%-- --%> + <%-- --%> + <%-- 性别--%> + <%-- --%> + <%-- 请选择性别--%> + <%-- 男--%> + <%-- 女--%> + <%-- --%> + <%-- --%> + <%-- --%> diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/web.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/web.xml index 9d7d1ee..3482565 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/web.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/web.xml @@ -3,6 +3,10 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0"> + + + + dispatcherServlet org.springframework.web.servlet.DispatcherServlet @@ -11,6 +15,7 @@ classpath:applicationContext.xml 1 + dispatcherServlet diff --git a/project2/pom.xml b/project2/pom.xml index 2d7a384..d582c87 100644 --- a/project2/pom.xml +++ b/project2/pom.xml @@ -139,23 +139,28 @@ jackson-annotations 2.12.7 - - org.slf4j - slf4j-log4j12 - 1.6.1 - + + + + + - org.apache.logging.log4j - log4j-api - 2.12.4 - - - - org.apache.logging.log4j - log4j-core - 2.12.4 + log4j + log4j + 1.2.17 + + + + + + + + + + + org.apache.commons commons-csv diff --git a/project2/src/main/resources/applicationContext.xml b/project2/src/main/resources/applicationContext.xml index 1af98d1..3ad282e 100644 --- a/project2/src/main/resources/applicationContext.xml +++ b/project2/src/main/resources/applicationContext.xml @@ -6,6 +6,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd"> + diff --git a/project2/src/main/resources/log4j.properties b/project2/src/main/resources/log4j.properties new file mode 100644 index 0000000..41bf498 --- /dev/null +++ b/project2/src/main/resources/log4j.properties @@ -0,0 +1,11 @@ +log4j.rootLogger=WARN, stdout + +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n + +log4j.logger.your.package.name=WARN, sql + +log4j.appender.sql=org.apache.log4j.ConsoleAppender +log4j.appender.sql.layout=org.apache.log4j.PatternLayout +log4j.appender.sql.layout.ConversionPattern=%d [%t] %-5p %c - %m%n diff --git a/project2/src/main/resources/mapper/TeacherMapper.xml b/project2/src/main/resources/mapper/TeacherMapper.xml index 9de3184..1e1bbed 100644 --- a/project2/src/main/resources/mapper/TeacherMapper.xml +++ b/project2/src/main/resources/mapper/TeacherMapper.xml @@ -38,11 +38,11 @@ AND sex = #{sex} - - AND c.CourseID = #{course.courseID} + + AND c.CourseID = #{course.CourseID} - AND c.CourseName LIKE CONCAT('%', #{course.courseName}, '%') + AND c.CourseName LIKE CONCAT('%', #{course.CourseName}, '%') diff --git a/project2/src/main/resources/mybatis-config.xml b/project2/src/main/resources/mybatis-config.xml index 6f46284..3aa3c98 100644 --- a/project2/src/main/resources/mybatis-config.xml +++ b/project2/src/main/resources/mybatis-config.xml @@ -3,6 +3,9 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> + + + @@ -17,4 +20,5 @@ + diff --git a/project2/web/WEB-INF/web.xml b/project2/web/WEB-INF/web.xml index 9d7d1ee..3482565 100644 --- a/project2/web/WEB-INF/web.xml +++ b/project2/web/WEB-INF/web.xml @@ -3,6 +3,10 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0"> + + + + dispatcherServlet org.springframework.web.servlet.DispatcherServlet @@ -11,6 +15,7 @@ classpath:applicationContext.xml 1 + dispatcherServlet