开发者

Spring Roo Database.properties file

开发者 https://www.devze.com 2023-02-25 03:02 出处:网络
Hi I am unable to connect to database in spring roo project. My error is ERROR org.hibernate.util.JDBCExceptionReporter - No database selected

Hi I am unable to connect to database in spring roo project. My error is ERROR org.hibernate.util.JDBCExceptionReporter - No database selected

org.hibernate.exception.GenericJDBCException: could not execute query;
nested exception is javax.persistence.PersistenceException:
org.hiber开发者_如何学Pythonnate.exception.GenericJDBCException: could not execute query

My Database.properties file

database.password=test@
database.url=jdbc\:mysql\://yahoo.com:3306
database.username=arv_aaa    
database.schemaNames=ar@1
database.driverClassName=com.mysql.jdbc.Driver


Just fix the following line:

database.url=jdbc\:mysql\://yahoo.com:3306

And add some data base the following way:

database.url=jdbc\:mysql\://yahoo.com:3306/mydb

Hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消