Mysql 使用spring boot的远程数据库连接

Mysql 使用spring boot的远程数据库连接,mysql,database,spring-boot,jpa,spring-data-jpa,Mysql,Database,Spring Boot,Jpa,Spring Data Jpa,我已通过以下属性连接远程数据库: spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://<server-ip>:3306/db_name spring.datasource.username= spring.datasource.password= spring.datasource.testWhileIdle=true spring.datasourc

我已通过以下属性连接远程数据库:

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://<server-ip>:3306/db_name
spring.datasource.username=
spring.datasource.password=
spring.datasource.testWhileIdle=true
spring.datasource.validationQuery=SELECT 1

spring.jpa.database=MYSQL
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
spring.datasource.driver类名=com.mysql.jdbc.driver
spring.datasource.url=jdbc:mysql://:3306/db\u name
spring.datasource.username=
spring.datasource.password=
spring.datasource.testWhileIdle=true
spring.datasource.validationQuery=SELECT 1
spring.jpa.database=MYSQL
spring.jpa.hibernate.naming strategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialogue=org.hibernate.dialogue.mysql5dialogue
spring.jpa.hibernate.ddl auto=validate
spring.jpa.generate ddl=true
spring.jpa.show sql=true
在构建应用程序时,我没有收到任何数据库错误。 在本地测试应用程序时,所有crud操作均成功完成,没有任何错误。 但远程数据库中的数据没有更新。我没有抓住这个问题。 你能帮我解决那个问题吗


提前谢谢。

好吧,数据肯定有什么用处。您确定要在正确的数据库架构中查找数据吗?是否有任何日志说明应用程序连接到哪个数据库?谢谢。是的,我正在检查数据的正确数据库。