1
回答
cloudFoundry上,数据库表不存在啥问题?
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

cloudFoundry上表不存在啥错误?但是通过Tunnel连接上,表都存在啊!数据库链接应该也没问题,我通过dataSource创建connection,执行过建表的初始SQL。

Struts has detected an unhandled exception: 

Messages: Table 'dcf473993dcb24d9ca98e9af376df9a8e.UserCount' doesn't exist 
could not load an entity: [com.xjtu.domain.UserCount#1] 
could not load an entity: [com.xjtu.domain.UserCount#1]; nested exception is org.hibernate.exception.SQLGrammarException: could not load an entity: [com.xjtu.domain.UserCount#1] 
 
File: com/mysql/jdbc/SQLError.java
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
		<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
		<property name="url" value="jdbc:mysql://172.30.48.28:3306/dcf473993dcb24d9ca98e9af376df9a8e"></property>
		<property name="username" value="uvRZSvWRqASP7"></property>
		<property name="password" value="pyzBj7194n3r0"></property>
	</bean>


举报
kuas
发帖于5年前 1回/152阅
顶部