applicationcontext.xml文件

#一、样例一





作用一:配数据库











classpath:jdbc.properties







 
















































 

















org.bigdatacn.sfgk.wlzbs.service.*














作用二:







 
 作用三:性能优化











                          

org\.bigdatacn\.sfgk\.wlzbs\.dao\..*

org\.bigdatacn\.sfgk\.wlzbs\.daoImpl\..*

org\.bigdatacn\.sfgk\.wlzbs\.service\..*

org\.bigdatacn\.sfgk\.wlzbs\.view\.service\..*

org\.bigdatacn\.sfgk\.wlzbs\.view\.serviceImpl\..*











 
作用四:,导入hibranate.cfg.xlm










作用五: 










#二、样例二


   

    
    
    
    

    
    
        
         
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    
    
    
        
        
        
        
            
                
                classpath:com/parry/test/dao/config/*.xml
            
        
    
    
    
        
    
    
        
    
    
    
        
    
    
    

    
    
    
    
    
        
        
    
    
    
        
        
    
    
    
        
            
                
            
        
    
    
    
    

#三、样例三

  
  
  
      
      
      
          
              
                classpath:jdbc.properties  
              
          
      
      
      
      
          
          
          
          
      
      
      
          
          
              
                org.hibernate.dialect.OracleDialect  
                true  
                true  
              
          
          
              
                classpath:org/entity  
              
          
      
      
      
       
          
      
      
      
      
          
              
              
              
              
              
              
              
              
          
      
      
          
          
       
      
      
      
      
      
      
      
      

参考:
https://blog.csdn.net/qq_27093465/article/details/52566506
https://blog.csdn.net/qq_32364027/article/details/51354462
https://blog.csdn.net/qq_34137397/article/details/72823031
https://blog.csdn.net/heng_ji/article/details/7022171
https://www.cnblogs.com/kaiwen1/p/6864458.html

你可能感兴趣的:(java)