【发布时间】:2018-09-15 02:45:11
【问题描述】:
我刚刚在https://start.spring.io/ 上生成了新项目,添加了
- 网络
- 安全性
- JPA
- PostgreSQL
然后我有描述:
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
所以我加了
spring.datasource.url= jdbc:postgresql://10.1.2.5/vlex
spring.datasource.username=myUser
spring.datasource.password=myPassword
spring.jpa.hibernate.ddl-auto=none
进入 application.properties,现在我有了:
java.lang.reflect.InvocationTargetException: null
Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.
我无法克服这个问题并卡在这里。有没有办法在 Spring Boot 应用程序中使用 PostgreSQL 9.6?除了application.properties,我没有编辑任何东西
【问题讨论】:
标签: java spring postgresql spring-boot