老司机带你搭建SSM框架

一、配置applicationContext








classpath:jdbc.properties





 

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

	附:jdbc.properties
		jdbc.driverClassName=com.mysql.jdbc.Driver
	   jdbc.url=jdbc:mysql://127.0.0.1:3306/mybatis?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
		jdbc.username=root
		jdbc.password=123456

二、配置数据库事务applicationContext-transaction.xml



	




	
		
		
		
		
	



	
	
	
	

三、配置spring和mybatis整合













四、配置视图解析

mvc:annotation-driven/






附:maven项目pom.xml


	4.10
	4.1.3.RELEASE
	3.2.8
	1.2.2
	1.2.15
	5.1.32
	1.6.4
	2.4.2
	1.0.9
	4.3.5
	1.2
	2.5
	2.0
	2.5
	3.3.2
	1.3.2

junit junit test org.springframework spring-webmvc org.springframework spring-jdbc org.springframework spring-aspects org.mybatis mybatis org.mybatis mybatis-spring mysql mysql-connector-java
	
		org.slf4j
		slf4j-log4j12
	
	
	
		com.fasterxml.jackson.core
		jackson-databind
	

	
	
		com.jolbox
		bonecp-spring
	
		
			jstl
			jstl
		
		
			javax.servlet
			servlet-api
			provided
		
		
			javax.servlet
			jsp-api
			provided
		
		
		
			org.apache.commons
			commons-lang3
			${commons-lang3.version}
		
		
			org.apache.commons
			commons-io
			${commons-io.version}
		
		
		
		    com.github.pagehelper
		    pagehelper
		    3.7.5
		
		
		    com.github.jsqlparser
		    jsqlparser
		    0.9.1
		
		
		
		
		    com.github.abel533
		    mapper
		    2.3.4
		

你可能感兴趣的:(工具使用)