<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <!-- Log4j start --> <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/classes/config/log4j.properties</param-value> </context-param> <context-param> <param-name>log4jRefreshInterval</param-name> <param-value>60000</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> <!-- Log4j end --> <!-- spring start --> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:config/applicationContext.xml, classpath*:config/applicationContext-dao*.xml, classpath*:config/applicationContext-service*.xml, classpath*:config/applicationContext-update-dao*.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>ForceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>characterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- spring end --> <servlet> <servlet-name>application</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:config/applicationContext-servlet*.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>application</servlet-name> <url-pattern>*.vo</url-pattern> </servlet-mapping> </web-app>
<?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:aop="http://www.springframework.org/schema/aop" xmlns:p="http://www.springframework.org/schema/p" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:task="http://www.springframework.org/schema/task" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd"> <!-- start 注意:mysql->修改my.ini的max_connections=1000 --> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location"> <value>classpath:/config/datasource.properties</value> </property> </bean> <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close"> <property name="driverClassName" value="${driverClass}" /> <property name="url" value="${jdbcUrl}" /> <property name="username" value="${username}" /> <property name="password" value="${password}" /> <!-- 配置初始化大小、最小、最大 --> <property name="initialSize" value="1" /> <property name="minIdle" value="1" /> <property name="maxActive" value="20" /> <!-- 配置获取连接等待超时的时间 --> <property name="maxWait" value="60000" /> <!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 --> <property name="timeBetweenEvictionRunsMillis" value="60000" /> <!-- 配置一个连接在池中最小生存的时间,单位是毫秒 --> <property name="minEvictableIdleTimeMillis" value="300000" /> <property name="validationQuery" value="SELECT * from dual" /> <property name="testWhileIdle" value="true" /> <property name="testOnBorrow" value="false" /> <property name="testOnReturn" value="false" /> <!-- 打开PSCache,并且指定每个连接上PSCache的大小 --> <property name="poolPreparedStatements" value="true" /> <property name="maxPoolPreparedStatementPerConnectionSize" value="20" /> <property name="filters" value="config,stat" /> <property name="removeAbandoned" value="true" /> </bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="get*" propagation="SUPPORTS" read-only="true" /> <tx:method name="load*" propagation="SUPPORTS" read-only="true" /> <tx:method name="search*" propagation="SUPPORTS" read-only="true" /> <tx:method name="find*" propagation="SUPPORTS" read-only="true" /> <tx:method name="*" propagation="REQUIRED" rollback-for="Exception" /> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="serviceMethods" expression="execution(* net.xxx.service..impl..*Impl.*(..));" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="serviceMethods" /> </aop:config> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="configLocation" value="classpath:config/sqlmap-config.xml" /> <property name="typeAliasesPackage" value="net.xxx.domain,net.xxx.dao.updatedao.po" /> <property name="mapperLocations" value="classpath*:net/xxx/dao/**/sql/*.xml" /> <property name="dataSource" ref="dataSource" /> </bean> <!-- 平台 start --> <bean id="platformDao" class="net.xxx.platform.common.dao.impl.PlatformDaoImpl"> <property name="sqlSessionFactory" ref="sqlSessionFactory" /> </bean> <bean id="platformActionController" class="net.xxx.platform.common.controller.PlatformActionController"> </bean> <!-- 平台 end --> </beans>
<?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:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" /> <bean class="net.xxx.web.xxx"> <property name="service" ref="xxxService" /> </bean> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" p:prefix="/WEB-INF/jsp/" p:suffix=".jsp" /> </beans>
相关推荐
struts2.2+velocity+tiles+spring3+mybatis3.05集成框架实例 ,最新的框架组合.。
Spring3.2.1+struts2.3.15.1+mybatis3.2.2 集合jar包 测试能用,整个包比较精简。基本没有多余的包。 里面带了commons-configuration-1.9.jar(操作xml文件的公共类包,很实用很强大,它依赖的commons-lang-2.3.jar...
MyBatis3.2.1.jar+MyBatis-Spring1.1.1.jar一套,如果觉得不够,下载完私聊我,赠于SSM最新一套Jar包
Spring4.0.4,Mybatis3.2.1,平台是Eclipse j2ee Mars.2 Release (4.5.2)
最新struts-2.3.8+spring-3.2.1+mybatis-3.2.2架构,包齐全,无冲突,Eclipse开发 导入工程即可 九月 18, 2013 11:39:01 上午 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache ...
commons-collections-3.2.1 commons-dbcp-1.1 commons-logging-1.1.3 commons-pool-1.6 mybatis-3.2.0-SNAPSHOT mybatis-spring-1.1.1 mysql-connector-java-5.1.27 org.springframework.aop-3.1.1.RELEASE org....
自己搭建的SSM环境 清册可以使用 跑Hello Word没问题 ,可以连接数据库,dao和Mapper自己写,连接的代码已经写好,自己填就可以,我自己本地的环境是JDK1.8,maven3.2.1,Tomcat8.0,
commons-collections-3.2.1 commons-dbcp-1.1 commons-logging-1.1.3 commons-pool-1.6 mybatis-3.2.0-SNAPSHOT mybatis-spring-1.1.1 mysql-connector-java-5.1.27 org.springframework.aop-3.1.1.RELEASE org....
采用springboot+mysql+layui+mybatis-plus技术,用idea或eclipse开发工具可直接打开 目录 1 绪论 2 1.1 项目开发背景 2 1.2 项目开发意义 3 1.3 项目主要的内容 3 2 开发环境及相关技术概述 3 2.1 相关技术 3 2.2 ...
网上有许多关于SpringMVC与Mybatis整合的实例,但是由于Mybaits-spring有好几种配置方式(SqlSessionDaoSupport方式,mapperFactoryBean方式,mapperScannerConfigurer方式),这样看起来会觉得很乱,不知道哪个是对的...
技术选型后端技术技术名称版本官网Spring Boot应用框架2.3.2.RELEASEMyBatis持久层框架3.2.1MyBatis-Ext基于MyBatis的增强扩展1.6.5Maven项目构建管理4.0.0Apache Shiro安全框架1.6.0Logback日志组件1.1.3Hibernate ...
Spring boot 1.5.15、Mybatis1.3.0、Redis3.2.1、jdk1.8、MySQL5.6、IntelliJ IDEA2018.3 内容概述 Spring boot是当今最为流行的Java web开发框架之一,支持基于注解的自动配置方式,并整合了业界各种开发框架;...
2.2 Spring+SpringMVC+Mybatis框架 2.3 Tomcat服务器 2.4 JSP+jQuery技术 3 系统分析 3.1 可行性分析 3.1.1 经济可行性 3.1.2 操作可行性 3.1.3 技术可行性 3.2 业务需求分析 3.2.1 用户及用户信息管理 3.2.2 报修及...
框架:Spring + Spring MVC + MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城...
框架:Spring + Spring MVC + MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城...
MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城实现 商城商品展示 3.2.3 商品...
MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城实现 商城商品展示 3.2.3 商品...
MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城实现 商城商品展示 3.2.3 商品...
MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城实现 商城商品展示 3.2.3 商品...
MyBatis 服务器:Tomcat 前端解析框架:Thymeleaf 开发工具:Idea 2017 版本管理工具:Maven 版本控制工具:GitHub 3.2 实现过程 3.2.1 商品首页实现 其他部分实现效果 3.2.2 二手商城实现 商城商品展示 3.2.3 商品...