Skip to content

Commit

Permalink
修复 SSH 配置错误
Browse files Browse the repository at this point in the history
Fireply committed May 19, 2016
1 parent 07f81ef commit cc4507b
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .settings/org.hibernate.eclipse.console.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default.configuration=
eclipse.preferences.version=1
hibernate3.enabled=false
4 changes: 4 additions & 0 deletions WebRoot/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -38,6 +38,10 @@
<!-- <servlet>
<servlet-name>dispatcherFilter</servlet-name>
<servlet-class> org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
6 changes: 3 additions & 3 deletions src/main/resources/applicationContext.xml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ http://www.springframework.org/schema/context/spring-context-4.2.xsd
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://localhost/enter</value>
<value>jdbc:mysql://localhost:3306/enter</value>
</property>
<property name="username">
<value>root</value>
@@ -38,15 +38,15 @@ http://www.springframework.org/schema/context/spring-context-4.2.xsd
<!-- 配置Hibernate Session 工厂 -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="mappingLocations" value="classpath:**/*.hbm.xml"></property>
<property name="mappingLocations" value="classpath:enter/entity/*.hbm.xml"></property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
<prop key="hibernate.use_sql_comments">true</prop>
<prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
<prop key="hibernate.default_schema">enter</prop>
<!-- <prop key="hibernate.default_schema">enter</prop> -->
<prop key="hibernate.current_session_context_class">org.springframework.orm.hibernate4.SpringSessionContext</prop>
</props>
</property>

0 comments on commit cc4507b

Please sign in to comment.