我已经看到了这个特殊问题的一些答案,但似乎没有什么对我有用。我仍然会'提交验证'错误。我已经在STS中开发了这个Spring Boot应用程序大约一个月,并且在我创建可执行jar并在测试服务器机器上运行它之前没有这个异常。当我启动应用程序时,所有数据都正确加载,但是在我尝试更新或添加新记录的一段时间(几分钟)之后,我在运行可执行jar的位置的cmd中“存档以验证”错误。
spring.datasource.url=jdbc:mysql://localhost:3306/prod
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.jpa.database-platform = org.hibernate.dialect.MySQL5Dialect
server.port = 8085
spring.datasource.connection-test-query = SELECT 1
spring.datasource.test-while-idle=true
spring.datasource.test-on-borrow=true
spring.datasource.max-active=10
spring.datasource.initial-size=5
spring.datasource.max-idle=5
spring.datasource.min-idle=1
spring.datasource.time-between-eviction-runs-millis=5000
spring.datasource.min-evictable-idle-time-millis=60000
spring.jpa.hibernate.ddl-auto=update