Browse Source

数据库配置修改

wangyc 8 years ago
parent
commit
38971cba54

+ 1 - 1
src/main/resources/META-INF/persistence.xml

@@ -16,7 +16,7 @@
 				to modify an existing database; value="create-drop" means the same as "create" 
 				but also drops tables when Hibernate closes; value="validate" makes no changes 
 				to the database -->
-			<property name="hibernate.hbm2ddl.auto" value="update" />
+			<property name="hibernate.hbm2ddl.auto" value="create" />
 			<property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy" />
 			<property name="hibernate.connection.charSet" value="UTF-8" />
 			<!-- Uncomment the following two properties for JBoss only -->

+ 1 - 1
src/main/resources/dev/jdbc.properties

@@ -1,6 +1,6 @@
 jdbc.driverClassName=com.mysql.jdbc.Driver
 #jdbc.url=jdbc:oracle:thin:@192.168.253.6:1521:orcl
-jdbc.url=jdbc:mysql://192.168.253.12:3306/mall_test
+jdbc.url=jdbc:mysql://192.168.253.12:3306/mall_test_wyc
 jdbc.username=root
 jdbc.password=select111***
 jdbc.initialSize=1