mybaties配置文件详解




	
	
		
			
			
				
				
				
				
			
		
	
	
		
	

db.propertis的文件

driverClass=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/mybaties
username=root
password=mysqladmin

mapper文件




	
		insert into pictureinfos (picturePath,userId) values(#{picturePath},1)
	
	
		delete from pictureInfos where pictureId=#{pictureId}
	
        

你可能感兴趣的:(mybatis)