Spring Roo Database.properties file
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!
精彩评论