報這個錯誤
org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
in 'reader', line 10, column 8:
hibernate:
^
expected <block end>, but found BlockMappingStart
in 'reader', line 12, column 9:
show-sql: true
org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
in 'reader', line 10, column 8:
hibernate:
^
expected <block end>, but found BlockMappingStart
in 'reader', line 12, column 9:
show-sql: true
2017-03-30
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'cupSize' in string value "${cupSize}"
2017-03-29
運行出現這樣的警告:WARN: Establishing SSL connection without server's identity verification is not recommended. .....(略
解決辦法:修改配置文件里的url
url: jdbc:mysql://127.0.0.1:3306/chqing?characterEncoding=utf8&useSSL=true
解決辦法:修改配置文件里的url
url: jdbc:mysql://127.0.0.1:3306/chqing?characterEncoding=utf8&useSSL=true
2017-03-29
application.yml配置文件需要添加配置:jpa:
properties:
hibernate:
dialect:org.hibernate.dialect.MySQLDialect
properties:
hibernate:
dialect:org.hibernate.dialect.MySQLDialect
2017-03-29
用eclipse進行spring boot開發步驟:
1:Help -> Eclipse Marketplace
Search或選擇“Popular”標簽,選擇Spring Tool Suite (STS) for Eclipse插件,安裝 或者谷歌百度搜索
2:new project -> 輸入spring 下面會有提示 選擇Spring Starter Project
3:接下來的界面跟老師的IDEA沒什么區別了
1:Help -> Eclipse Marketplace
Search或選擇“Popular”標簽,選擇Spring Tool Suite (STS) for Eclipse插件,安裝 或者谷歌百度搜索
2:new project -> 輸入spring 下面會有提示 選擇Spring Starter Project
3:接下來的界面跟老師的IDEA沒什么區別了
2017-03-28