Mybatis配置文件

 今天发现Mybaits的配置文件校验很诡异,节点的位置还有要求

 

 

如下,会报错:

The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,mappers?)".
 

 





	
    
	    
		    
			
				
				
				
				
			
	    
    
    
	
	   
	
	
    
	   
	
	

 

把typeAliases放到最上面就好了说:




	
	   
	
	
    
	    
		    
			
				
				
				
				
			
	    
    
    
	
    
	   
	
	
 

你可能感兴趣的:(Mybatis)