ssm+shiro+druid搭建

application.xml

    
    
        
	 
      
         
           
           
           
           
           
          
         
         
         
         
         
         
           
         
         
         
           
           
           
           
           
         
         
         
         
         
            
         
    
	     
      
       
        
           
               
                 classpath:dbconfig.properties    
                
            
     
    
    	
    	
    	
    
    
    	
    	
    
    
    	
    
    
    
     
          
          
          
      
      
      
          
      
      
      
          
      
    
	
		
		
		
		
		
		
		
	
	
	
	  
  	    
	  
	
	
	  
	      
	    
	      
	     
	      
	      
	        
				/loginServlet.do=anon
				/validateImg.do=anon
				/**/*.js=anon
				/**/*.css=anon
				/**/*.png=anon
				/**/*.jpg=anon
				/**/*.img=anon
				/**=authc
	          
	    
	  
	
	  
	  
	
	
	  
  		  
  	    
      
    
      
          
          
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
          
      
	
		
		
	
	
dbconfig.properties

url:jdbc:mysql://localhost:3306/db_hospital
#url:jdbc:mysql://localhost:3306/db_emp?serverTimezone=UTC&characterEncoding=utf8&useUnicode=true&useSSL=false
driverClassName:com.mysql.jdbc.Driver
username:root
password:123456
filters:stat
maxActive:20
initialSize:1
maxWait:60000
minIdle:10
maxIdle:15
timeBetweenEvictionRunsMillis:60000
minEvictableIdleTimeMillis:300000
validationQuery:SELECT 'x'
testWhileIdle:true
testOnBorrow:false
testOnReturn:false
maxOpenPreparedStatements:20
removeAbandoned:true
removeAbandonedTimeout:1800
logAbandoned:true
mybatis-config.xml




	
	
		
	

spring-mvc.xml

    
    
        
        
        
        	
        	
        
        
        	
        	
        
        
 


web.xml



	hospital
	
	    login.jsp
	
	
		contextConfigLocation
		classpath:applicationContext.xml
	
	  
	    shiroFilter  
	    org.springframework.web.filter.DelegatingFilterProxy  

    
	    targetFilterLifecycle  
	    true  
	  
	 
	  
	    shiroFilter  
	    /*  
	
	
	 
	
		encodingFilter
		org.springframework.web.filter.CharacterEncodingFilter
		
			encoding
			utf-8
		
	
	
		encodingFilter
		/*
	
	
	  
	    
	      DruidWebStatFilter   
	      com.alibaba.druid.support.http.WebStatFilter   
	       
	         exclusions  
	         *.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*  
	       
	    
	    
	     DruidWebStatFilter  
	      /*   
	    
	    
	     DruidStatView  
	     com.alibaba.druid.support.http.StatViewServlet  
	    
	    
	     DruidStatView  
	     /druid/*  
	    
	    
	
		org.springframework.web.context.ContextLoaderListener
	
	
		springMVC
		org.springframework.web.servlet.DispatcherServlet
		
			contextConfigLocation
			classpath:spring-mvc.xml
		
		1
	
	
		springMVC
		*.do
	

 
 


你可能感兴趣的:(ssm)