免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
SSH項(xiàng)目整合開(kāi)發(fā)的環(huán)境搭建


SSH項(xiàng)目整合開(kāi)發(fā)的環(huán)境搭建


spring jar下載地址


http://maven.springframework.org/release/org/springframework/spring/


環(huán)境搭建是一個(gè)難點(diǎn)


通用包(7個(gè)):
commons-dbcp2-2.1.jar
commons-logging-1.1.3.jar
commons-pool2-2.3.jar
commons-collections4-4.0.jar
aopalliance-1.0-20100517.210215-13.jar
mysql-connector-java-5.1.33-bin.jar
aspectjweaver-1.6.9.jar


struts包(13+1)
asm-3.3.jar
asm-commons-3.3.jar
asm-tree-3.3.jar
commons-fileupload-1.3.1.jar
commons-io-2.2.jar
commons-lang3-3.2.jar
freemarker-2.3.22.jar
javassist-3.11.0.GA.jar
log4j-api-2.2.jar
log4j-core-2.2.jar
ognl-3.0.6.jar
struts2-core-2.3.24.jar
xwork-core-2.3.24.jar


struts2-spring-plugin-2.3.24.jar




hibernate包(10個(gè))


antlr-2.7.7.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.5.Final.jar
hibernate-core-4.3.10.Final.jar
hibernate-jpa-2.1-api-1.0.0.Final.jar
jandex-1.1.0.Final.jar
javassist-3.18.1-GA.jar
jboss-logging-3.1.3.GA.jar
jboss-logging-annotations-1.2.0.Beta1.jar
jboss-transaction-api_1.2_spec-1.0.0.Final.jar


spring包(10個(gè))
spring-beans-4.1.6.RELEASE.jar
spring-context-4.1.6.RELEASE.jar
spring-core-4.1.6.RELEASE.jar
spring-expression-4.1.6.RELEASE.jar
spring-aop-4.1.6.RELEASE.jar
spring-web-4.1.6.RELEASE.jar
spring-orm-4.1.6.RELEASE.jar
spring-tx-4.1.6.RELEASE.jar
spring-jdbc-4.1.6.RELEASE.jar
spring-aspects-4.1.6.RELEASE.jar


整合包下載(包含Jar包和配置文件)


http://pan.baidu.com/s/1bn54wd5


SSH環(huán)境配置
1.配置jar包
2.增加配置文件

  (1) web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


    <display-name>Struts Blank</display-name>


    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>


    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>


    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>


</web-app>




  (2) struts.xml


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">


<struts>
    <package name="all" namespace="/" extends="struts-default">
    </package>
</struts>


 (3) hibernate-cfg.xml


<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">


<hibernate-configuration>
<session-factory>
      <!-- Database connection settings -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/album</property> 
<property name="connection.username">root</property>   ///這里面的密碼和用戶名等等以及數(shù)據(jù)庫(kù)都是和自己的數(shù)據(jù)庫(kù)有關(guān)
<property name="connection.password">12345678</property>  
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="show_sql">true</property>
        <!-- Drop and re-create the database schema on startup -->
        <property name="hbm2ddl.auto">update</property>
        <mapping class="net.xinqushi.model.User"/>
</session-factory>
</hibernate-configuration>


 (4)applicationContext.xml


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd">


</beans>


struts.xml和 hibernate-cfg.xml放在src目錄下
applicationContext.xml和web.xml放在 WEB-INF目錄下



本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
開(kāi)發(fā)環(huán)境搭建集合【筆記】-2016.6.14
struts2.1.8 + spring2.5.6 + hibernate3.3.2整合的...
Ssh整合開(kāi)發(fā)介紹和簡(jiǎn)單的登入案例實(shí)現(xiàn)
Myeclipse10下搭建SSH框架(圖解)Struts2.1 Spring3.0 Hi...
Spring3.xjar包詳解與依賴關(guān)系
簡(jiǎn)單SSH項(xiàng)目開(kāi)發(fā)步驟
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服