英文:
Parsing application.yml
问题
以下是您要翻译的内容:
"Hi I try build my spring application with gradle and it gives bellow error code
> ERROR org.springframework.boot.SpringApplication - Application startup
> failed org.yaml.snakeyaml.scanner.ScannerException: mapping values are
> not allowed here in 'reader', line 12, column 12:
> ssl:
The yml is
liquibase:
changeLog: classpath:/config/liquibase/changelog/master-changelog.groovy
spring:
datasource:
url: jdbc:postgresql://x:xxxx/xxxxx
username: x
password: x
server:
port: 8443
ssl:
enabled: true
key-store: classpath:keystore.p12
key-store-password: x
keyStoreType: pkcs12
keyAlias: x
server:
port: 8080
What is the error ?"
英文:
Hi I try build my spring application with gradle and it gives bellow error code
> ERROR org.springframework.boot.SpringApplication - Application startup
> failed org.yaml.snakeyaml.scanner.ScannerException: mapping values are
> not allowed here in 'reader', line 12, column 12:
> ssl:
The yml is
liquibase:
changeLog: classpath:/config/liquibase/changelog/master-changelog.groovy
spring:
datasource:
url: jdbc:postgresql://x:xxxx/xxxxx
username: x
password: x
server:
port: 8443
ssl:
enabled: true
key-store: classpath:keystore.p12
key-store-password: x
keyStoreType: pkcs12
keyAlias: x
server:
port: 8080
What is the error ?
答案1
得分: 0
ssl和port应该处于同一级别,就像这样
server:
port: 8443
ssl:
enabled: true
key-store: classpath:keystore.p12
key-store-password: x
keyStoreType: pkcs12
keyAlias: x
additionalPorts: 8080, 8081
英文:
ssl and port should be on the same level, like so
server:
port: 8443
ssl:
enabled: true
key-store: classpath:keystore.p12
key-store-password: x
keyStoreType: pkcs12
keyAlias: x
additionalPorts: 8080, 8081
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论