设置如下解决问题:
spring.jpa.database-platform=org.hibernate.dialect.OracleDialect
spring.datasource.driverClassName=oracle.jdbc.OracleDriver
spring.datasource.url=jdbc\:oracle\:thin\:@localhost\:1521/orcl
spring.datasource.username=jy1_test
spring.datasource.password=barcode
#1
spring.jpa.hibernate.ddl-auto=update
#2
spring.jpa.show-sql=true
spring.jackson.serialization.indent_output=true
springboot启动出现Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect‘ not set