SSM 整合的配合文件(分享)

网友投稿 205 2023-03-04


SSM 整合的配合文件(分享)

1.1 maven项目pom管理

UTF-8

UTF-8

1.9.3

4.3.2.RELEASE

1.8.6

1.8.6

1.3.0

3.4.5

5.1.32

1.7.25

1.7.25

1.2.17

2.3

1.2

4.12

1.3.1

1.0.13

1.2

2.0

2.9.2

com.alibaba

druid

${druid.version}

commons-beanutils

commons-beanutils

${commons.beanutils}

org.springframework

spring-core

${spring.version}

org.springframework

spring-context

${spring.version}

org.springframework

spring-aop

${spring.version}

org.aspectj

aspectjrt

${aspectj.version}

org.aspectj

aspectjweaver

${aspectj.weaver}

org.springframework

spring-jdbc

${spring.version}

org.springframework

spring-webmvc

${spring.version}

org.mybatis

mybatis-spring

${mybatis.spring.version}

com.fasterxml.jackson.core

jackson-databind

${jackson.version}

org.mybatis

mybatis

${mybatis.version}

mysql

mysql-connector-java

${mysql.version}

commons-fileupload

commons-fileupload

${commons-fileupload.version}

jstl

jstl

${jstl.version}

javax.servlet

jsp-api

${jsp-api.version}

provided

junit

junit

${junit.version}

test

install

org.apache.maven.plugins

maven-compiler-plugin

3.6.1

1.8

1.8

org.apache.maven.plugins

maven-resources-plugin

3.0.2

UTF-8

src/main/java

**/*.xml

1.2 Web.xml配置

xmlns="http://java.sun.com/xml/ns/javaee"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

id="WebApp_ID" version="3.0">

ssmYaSPy

characterEncoding

org.springframework.web.filter.CharacterEncodingFilter

encoding

UTF-8

forceEncoding

true

characterEncoding

/*

HttpMethodFilter

org.springframework.web.filter.HttpPutFormContentFilter

HttpMethodFilter

/*

HiddenHttpMethodFilter

org.springframework.web.filter.HiddenHttpMethodFilter

HiddenHttpMethodFilter

/*

springmvc

org.springframework.web.servlet.DispatcherServlet

contextConfigLocation

classpath:springmvc.xml

1

sprhttp://ingmvc

*.shtml

index.shtml

index.htm

index.jsp

default.html

default.htm

default.jsp

xmlns="http://java.sun.com/xml/ns/javaee"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

id="WebApp_ID" version="3.0">

ssmYaSPy

characterEncoding

org.springframework.web.filter.CharacterEncodingFilter

encoding

UTF-8

forceEncoding

true

characterEncoding

/*

HttpMethodFilter

org.springframework.web.filter.HttpPutFormContentFilter

HttpMethodFilter

/*

HiddenHttpMethodFilter

org.springframework.web.filter.HiddenHttpMethodFilter

HiddenHttpMethodFilter

/*

springmvc

org.springframework.web.servlet.DispatcherServlet

contextConfigLocation

classpath:springmvc.xml

1

sprhttp://ingmvc

*.shtml

index.shtml

index.htm

index.jsp

default.html

default.htm

default.jsp

1.3 springmvc配置文件

xmlns:xsi="http://w3.org/2001/XMLSchema-instance"

xmlns:p="http://springframework.org/schema/p"

xmlns:context="http://springframework.org/schema/context"

xmlns:mvc="http://springframework.org/schema/mvc"

xsi:schemaLocation="

http://springframework.org/schema/beans

http://springframework.org/schema/beans/spring-beans.xsd

http://springframework.org/schema/context

http://springframework.org/schema/context/spring-context.xsd

http://springframework.org/schema/mvc

http://springframework.org/schema/mvc/spring-mvc.xsd">

class="org.springframework.web.multipart.commons.CommonsMultipartResolver">

xmlns:xsi="http://w3.org/2001/XMLSchema-instance"

xmlns:p="http://springframework.org/schema/p"

xmlns:context="http://springframework.org/schema/context"

xmlns:mvc="http://springframework.org/schema/mvc"

xsi:schemaLocation="

http://springframework.org/schema/beans

http://springframework.org/schema/beans/spring-beans.xsd

http://springframework.org/schema/context

http://springframework.org/schema/context/spring-context.xsd

http://springframework.org/schema/mvc

http://springframework.org/schema/mvc/spring-mvc.xsd">

class="org.springframework.web.multipart.commons.CommonsMultipartResolver">

class="org.springframework.web.multipart.commons.CommonsMultipartResolver">

1.4 spring配置文件

xmlns:xsi="http://w3.org/2001/XMLSchema-instance" xmlns:p="http://springframework.org/schema/p"

xmlns:context="http://springframework.org/schema/context"

xmlns:mvc="http://springframework.org/schema/mvc" xmlns:tx="http://springframework.org/schema/tx"

xmlns:aop="http://springframework.org/schema/aop"

xsi:schemaLocation="

http://springframework.org/schema/beans

http://springframework.org/schema/beans/spring-beans.xsd

http://springframework.org/schema/context

http://springframework.org/schema/context/spring-context.xsd

http://springframework.org/schema/mvc

http://springframework.org/schema/mvc/spring-mvc.xsd

http://springframework.org/schema/tx

http://springframework.org/schema/tx/spring-tx.xsd

http://springframework.org/schema/aop

http://springframework.org/schema/aop/spring-aop.xsd">

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

xmlns:xsi="http://w3.org/2001/XMLSchema-instance" xmlns:p="http://springframework.org/schema/p"

xmlns:context="http://springframework.org/schema/context"

xmlns:mvc="http://springframework.org/schema/mvc" xmlns:tx="http://springframework.org/schema/tx"

xmlns:aop="http://springframework.org/schema/aop"

xsi:schemaLocation="

http://springframework.org/schema/beans

http://springframework.org/schema/beans/spring-beans.xsd

http://springframework.org/schema/context

http://springframework.org/schema/context/spring-context.xsd

http://springframework.org/schema/mvc

http://springframework.org/schema/mvc/spring-mvc.xsd

http://springframework.org/schema/tx

http://springframework.org/schema/tx/spring-tx.xsd

http://springframework.org/schema/aop

http://springframework.org/schema/aop/spring-aop.xsd">

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

rollback-for="java.lang.Exception" />

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

rollback-for="java.lang.Exception" />

classpath:cn/itcast/mapper/*Mapper.xml

1.5 JDBC配置文件

jdbc.driver=com.mysql.jdbc.Driver

jdbc.url=jdbc:mysql://127.0.0.1:3306/crm?useUnicode=true&characterEncoding=utf8&autoReconnect=true

jdbc.username=root

jdbc.pwd=123456

1.6 Log4j配置文件

log4j.rootLogger=DEBUG,A1

log4j.logger.com.taotao = DEBUG

log4j.logger.org.mybatis = DEBUG

log4j.appender.A1=org.apache.log4j.ConsoleAppender

log4j.appender.A1.layout=org.apache.log4j.PatternLayout

log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n

1.7 MyBatis配置文件

PUBLIC "-//mybatis.org//DTD Config 3.0//EN"

"http://mybatis.org/dtd/mybatis-3-config.dtd">


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Java中Spring WebSocket详解
下一篇:主数据管理平台 接口类型(主数据管理 开源)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~