日期:2014-05-17  浏览次数:20819 次

MyBatis 每次查询之后,项目都会reload。请问如何处理。
日志如下:


2014-02-27 16:40:10,229 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner] - Identified candidate component class: file [D:\ProgramFiles\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\B2B_Back\WEB-INF\classes\com\mapper\PolicyMapper.class]
2014-02-27 16:40:10,229 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner] - Creating MapperFactoryBean with name 'policyMapper' and 'com.mapper.PolicyMapper' mapperInterface
2014-02-27 16:40:10,290 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.SqlSessionFactoryBean] - Property 'configLocation' not specified, using default MyBatis Configuration
2014-02-27 16:40:10,303 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.SqlSessionFactoryBean] - Scanned package: 'com.pojo' for aliases
2014-02-27 16:40:10,303 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.SqlSessionFactoryBean] - Registered plugin: 'com.pagePlugin.PagePlugin@bb4c22'
2014-02-27 16:40:10,394 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.SqlSessionFactoryBean] - Property 'mapperLocations' was not specified or no matching resources found
2014-02-27 16:40:10,929 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.SqlSessionUtils] - Creating a new SqlSession
2014-02-27 16:40:10,944 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.SqlSessionUtils] - Registering transaction synchronization for SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4c73b0]
2014-02-27 16:40:11,035 [http-bio-8080-exec-3] DEBUG [org.mybatis.spring.transaction.SpringManagedTransaction] - JDBC Connection [jdbc:mysql://192.168.1.223:3306/framework_v3?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull, UserName=root@WIN7-20140219DC, MySQL-AB JDBC Driver] will be managed by Spring
2014-02-27 16:40:11,039 [http-bio-8080-exec-3] DEBUG [com.mapper.PolicyMapper.listPageGetPolicyRequest] - ooo Using Connection [jdbc:mysql://192.168.1.223:3306/framework_v3?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull, UserName=root@WIN7-20140219DC, MySQL-AB JDBC Driver]
2014-02-27 16:40:11,045 [http-bio-8080-exec-3] DEBUG [com.mapper.PolicyMapper.listPageGetPolicyRequest] - ==>  Preparing: select count(0) from (SELECT po.id, po.airline_code, po.departure_exclude, po.arrival_exclude, po.need_switchPNR, po.expired_date, po.start_date, po.supply_officeNo, po.work_time, po.flight_course, po.commision_money, po.commision_point, po.seat_class, po.modifyFlag, po.flightNo_exclude, po.flightNo_including, po.flight_cycle,po.policy_source FROM policy po WHERE po.sync_time > (SELECT po1.sync_time FROM policy po1 WHERE po1.id = ?) and datediff(po.expired_date, po.start_date) > 1 ORDER BY po.sync_time) as tmp_count 
2014-02-27 16:40:11,110 [http-bio-8080-exec-3] DEBUG [com.mapper.PolicyMapper.listPageGetPolicyRequest] - ==> Parameters: 4028805f43bddb560143bdddcf2500