Hibernate不创建表-Spring Boot

时间:2018-08-20 17:45:58

标签: java hibernate spring-boot

我设置了Traceback (most recent call last): File "C:\sheets\mySheets.py", line 65, in <module> response = request.execute() File "C:\Python27\lib\site-packages\googleapiclient\_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 842, in execute raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 400 when requesting https://sheets.googleapis.com/v4/spreadsheets/1demD8sm5-Jvi7ImHcOu03sHaU7PF61ym1eyvjN1bGfw/values/2018_Raw%20Data%21B234?alt=json&valueInputOption=USER_ENTERED returned "Invalid JSON payload received. Unknown name "": Root element must be a message."> ,但是当我运行spring boot时,并没有创建表。我要它自动更新银行。

一些设置:

spring.jpa.hibernate.ddl-auto = update

application.properties

有些豆:

## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)

spring.datasource.url = jdbc:mysql://localhost:3306/pell

spring.datasource.username = daniel

spring.datasource.password = root


## Hibernate Properties

# The SQL dialect makes Hibernate generate better SQL for the chosen database


spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect


# Hibernate ddl auto (create, create-drop, validate, update)

spring.jpa.hibernate.ddl-auto = update


spring.jpa.show-sql = true

0 个答案:

没有答案