Spring中配置文件application.xml中各配置的含义



	
	
		Spring Configuration.
	
	 
	
	
	
	
        
	
		
			
				classpath:database.properties
			
		
	
	
	
	
	
	
	
	
	 
	
	
	
	
		
              
	
	

	
	
	
	
	
	
	
	
	
		
		
                
		
			
				
					${hibernate.dialect}
				
			
		
		
                 
                
                  
                      com.wonders.*
                  
                 -->
		
 		
 		
 	
 	
 	
	
		
	
	
 	 
 		
 	 


	
	
	

	
	
        	
	

	
	
		
	

		
		
		
	
		
	
		

	
	
	
	
	
	
		
		
		
			
				PROPAGATION_REQUIRED 
				PROPAGATION_REQUIRED
				PROPAGATION_REQUIRED
				PROPAGATION_REQUIRED
				PROPAGATION_REQUIRED
			
		
	


同时,附上 hibernate.cfg.xml





 
   
    1  
    false  
    true  
    org.hibernate.cache.OSCacheProvider  
    true  
    org.hibernate.hql.ast.ASTQueryTranslatorFactory  
    true 1, false 0, yes 'Y', no 'N'  
    pool1  
    true  
    0  
    true  
    1  
      
      
      
      
      
      
    
      
     
      
      
      
      
      
    
    
    
    
 
    	  
    	
    	
    	
  
   


及database.properties

jdbc.handler oracleLobHandler
hibernate.dialect org.hibernate.dialect.Oracle9Dialect
hibernate.connection.driver_class oracle.jdbc.OracleDriver
hibernate.connection.username stpt
hibernate.connection.password shstpt
hibernate.connection.url jdbc:oracle:thin:@10.1.13.10:1521:stptdemo


你可能感兴趣的:(Spring-知识)