spring boot 自定义HandlerMethodArgumentResolver做参数校验
摘要:spring boot 自定义HandlerMethodArgumentResolver做请求参数校验时,如果controller中Action方法参数实体添加了@RequestBody注解会引起自定义的HandlerMethodArgumentResolver 无法执行,此时只要将@Request
阅读全文
Spring Boot Restful 乱码
摘要:Spring Boot Restful 接口返回中文乱码,如果是jar文件单独部署可加上参数:-Dfile.encoding=UTF-8 例如bat文件: java -jar -Dfile.encoding=UTF-8 -Dspring.output.ansi.enabled=always emal
阅读全文
spring boot 集成 hbase
摘要:spring boot 集成 hbase 会启动报错 主要因为Spring Boot内嵌了Web容器,方便对应用进行微服务化开发和部署。所以打算将HBase的业务应用作为一个单服务进行开发和发布,其他相关的子系统通过RESTful API来访问。 搭建项目环境时,需要注意的事项: 由于Spring
阅读全文
spring boot 集成phoenix
摘要:spring boot 开发restful api 并集成phoenix 做hbase查询会遇到 tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.hbase.
阅读全文
spring boot mssqlserver
摘要:由于maven 仓库的驱动包无法使用 1. 驱动下载 https://www.microsoft.com/zh-CN/download/details.aspx?id=11774 2. 解压文件,将对应jdk版本的驱动包添加到本地maven仓库,可参考:http://www.cnblogs.com/
阅读全文