基于eclipse+maven 的ssh2 完整配置

阅读更多

1.applicationContext.xml


 




















org.hibernate.dialect.MySQLDialect






classpath:com/liang/hbm/





    
        
    
  
    
    
    
   

 
2 Struts.xml




  


/jsp/main.jsp
/jsp/err/lose.jsp


    

 

3.web.xml 文件



   
  
  

contextConfigLocation

classpath:applicationContext.xml
        
    
    
    

org.springframework.web.context.ContextLoaderListener


   encodingFilter
   org.springframework.web.filter.CharacterEncodingFilter 
   
     encoding
     UTF-8
   
  


  
  struts2
  
  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  
  
  
  
   encodingFilter
   /*
  
  
  struts2
  *.action
  
  
   
  struts2
  *.jsp
  
  
    
    index.jsp
  
  

 
4.pox.xml依赖包


4.0.0
com.liang
ssh2
war
0.0.1-SNAPSHOT
ssh2 Maven Webapp
http://maven.apache.org



javax.servlet
jstl
1.2


javax.servlet.jsp
jsp-api
2.2.1-b03
provided




javax.servlet
servlet-api
2.5
provided




org.slf4j
slf4j-api
1.7.0




log4j
log4j
1.2.17




com.alibaba
fastjson
1.1.24




com.alibaba
druid
0.2.7




org.aspectj
aspectjweaver
1.7.0




mysql
mysql-connector-java
5.1.21



commons-pool
commons-pool
1.6


commons-dbcp
commons-dbcp
1.4


dom4j
dom4j
1.6.1


javassist
javassist
3.11.0.GA










junit
junit
4.10
test




org.apache.struts
struts2-core
2.3.4.1


javassist
javassist




org.apache.struts
struts2-spring-plugin
2.3.4.1


org.apache.struts
struts2-convention-plugin
2.3.4.1




org.hibernate
hibernate-core
3.6.4.Final




org.springframework
spring-core
3.1.2.RELEASE


org.springframework
spring-context
3.1.2.RELEASE


org.springframework
spring-jdbc
3.1.2.RELEASE


org.springframework
spring-beans
3.1.2.RELEASE


org.springframework
spring-web
3.1.2.RELEASE


org.springframework
spring-expression
3.1.2.RELEASE


org.springframework
spring-orm
3.1.2.RELEASE

     


ssh2

 
附上一个 .hbm.xml




           
               
                
               
              
              
                 
              
           

 




 

你可能感兴趣的:(ssh,maven,eclipse,struts,spring)