2 回答

TA貢獻1829條經驗 獲得超6個贊
我認為這里的主機名有問題。因此,請檢查一次主機名,例如 localhost(或)您正確的數據庫托管地名。
因為它顯示像unknownHostException這樣的異常。

TA貢獻1816條經驗 獲得超6個贊
spring.datasource.url=jdbc:mysql://localhost:3306/db_example
spring.datasource.username = root
spring.datasource.password = root
spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.MySQL5Dialect
hibernate.dialect=org.hibernate.dialectMySQL5Dialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=create
hibernate.ddl-auto=validate
hibernate.connection.url=jdbc:mysql://localhost:3306/axa_india?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
hibernate.connection.username=root
hibernate.connection.password=root
添加回答
舉報