Edit D:\rfid\apache-tomcat-8.5.32\webapps\opac\WEB-INF\classes\spring-mybatis.xml
<?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:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd"> <!-- ????????? --> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="classpath:jdbc.properties" /> </bean> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${driver}" /> <property name="url" value="${url}" /> <property name="username" value="${username}" /> <property name="password" value="${password}" /> <!-- ??????????? --> <property name="initialSize" value="${initialSize}"></property> <!-- ??????????? --> <property name="maxActive" value="${maxActive}"></property> <!-- ??????????? --> <property name="maxIdle" value="${maxIdle}"></property> <!-- ??????????? --> <property name="minIdle" value="${minIdle}"></property> <!-- ???????????????? --> <property name="maxWait" value="${maxWait}"></property> </bean> <!-- spring??yBatis?????????????ybatis??????????? --> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> <!-- ??????mapping.xml??? --> <property name="mapperLocations" value="classpath*:com/jishen/opac/mapping/*.xml"></property> <!-- ?????? --> <property name="typeAliasesPackage" value="com.isea533.mybatis.model" /> <property name="plugins"> <array> <bean class="com.github.pagehelper.PageInterceptor"> <!-- https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md --> <property name="properties"> <value> helperDialect=oracle pageSizeZero=true </value> </property> </bean> </array> </property> </bean> <!-- DAO???????????Spring?????????????? --> <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="basePackage" value="com.jishen.opac.dao" /> <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"></property> </bean> <!-- (??????)transaction manager, use JtaTransactionManager for global tx --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> </beans>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de