报这个错误
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