Mic*_*u93 7 java postgresql spring spring-boot
我刚上产生新的项目https://start.spring.io/,加
然后我有描述:
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
Run Code Online (Sandbox Code Playgroud)
所以我补充道
spring.datasource.url= jdbc:postgresql://10.1.2.5/vlex
spring.datasource.username=myUser
spring.datasource.password=myPassword
spring.jpa.hibernate.ddl-auto=none
Run Code Online (Sandbox Code Playgroud)
到application.properties,现在我有:
java.lang.reflect.InvocationTargetException: null
Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.
Run Code Online (Sandbox Code Playgroud)
我无法克服这个问题,并坚持到这里.有没有办法在Spring Boot应用程序中使用PostgreSQL 9.6?我没有编辑任何东西,只有application.properties
尝试添加属性:
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
Run Code Online (Sandbox Code Playgroud)
或者,如果您有特定的要求hibernate.xml,可以在此处设置相同的属性true
在github上有问题:https : //github.com/spring-projects/spring-boot/issues/12007
相似的问题:Postgres错误方法org.postgresql.jdbc.PgConnection.createClob()未实现
| 归档时间: |
|
| 查看次数: |
4481 次 |
| 最近记录: |