Spring3+Hibernate4 POM.xml

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

com.qk
demo
0.0.1-SNAPSHOT
jar

demo
http://maven.apache.org


UTF-8
3.2.8.RELEASE
5.1.18



repository.springframework.maven.milestone
Spring Framework Maven Milestone Repository
http://repo.spring.io/milestone/


springsource-repo
SpringSource Repository
http://repo.springsource.org/release


JBoss
JBoss Repsitory
default
http://repository.jboss.org/maven2


Central
MVN central
default
http://repo1.maven.org/maven2/


apache
apache
default
https://repository.apache.org/content/groups/public/


appfuse-snapshots
https://oss.sonatype.org/content/repositories/appfuse-snapshots

false


true






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



junit
junit
4.11



org.hibernate
hibernate-core
4.1.7.Final



mysql
mysql-connector-java
5.1.18



com.alibaba
druid
1.0.12





org.aspectj
aspectjweaver
1.8.5







=====================Spring.xml========================

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
">








====================config.properties====================================#hibernate.dialect=org.hibernate.dialect.OracleDialect
#driverClassName=oracle.jdbc.driver.OracleDriver
#validationQuery=SELECT 1 FROM DUAL
#jdbc_url=jdbc:oracle:thin:@127.0.0.1:1521:orcl
#jdbc_username=gacl
#jdbc_password=xdp

hibernate.dialect=org.hibernate.dialect.MySQLDialect
driverClassName=com.mysql.jdbc.Driver
validationQuery=SELECT 1
jdbc.driverClassName= com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/sshe?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull

jdbc.username=root
jdbc.password=

#hibernate.dialect=org.hibernate.dialect.SQLServerDialect
#driverClassName=net.sourceforge.jtds.jdbc.Driver
#validationQuery=SELECT 1
#jdbc_url=jdbc:jtds:sqlserver://127.0.0.1:1433/sshe
#jdbc_username=sa
#jdbc_password=123456

#jndiName=java:comp/env/dataSourceName

hibernate.hbm2ddl.auto=update
hibernate.show_sql=true
hibernate.format_sql=true
=======================spring-hibernate.xml============






${jdbc.driverClassName}
${jdbc.url}
${jdbc.username}
${jdbc.password}











${hibernate.hbm2ddl.auto}

${hibernate.dialect}

${hibernate.show_sql}

${hibernate.format_sql}






me.gacl.model












































你可能感兴趣的:(SSH,java,数据库)