11 2018 档案

摘要:在SpringCloud的项目中,我们使用了自动配置的OAuth2RestTemplate,RestTemplate,但是在使用这些restTemplate的时候,url必须是服务的名称,如果要调用真实的域名或者ip的url,会有错误,如下: 报错: 查看错误的跟踪链发现,自动注入的restTemp 阅读全文
posted @ 2018-11-30 19:22 路迢迢 阅读(14728) 评论(2) 推荐(0) 编辑
摘要:java.lang.ClassNotFoundException: org.springframework.boot.context.embedded.FilterRegistrationBean 把pom.xml 中的spring-boot-starter-parent的version由1.3.5 阅读全文
posted @ 2018-11-30 14:39 路迢迢 阅读(2221) 评论(0) 推荐(0) 编辑
摘要:spring cloud 1.1 版本之后可以使用 配置文件: bootstrap.yml pom文件需要spring-boot-starter-security的依赖 效果如下: 服务端指向注册中心的地址为: http://user:123@localhost:${server.port}/eur 阅读全文
posted @ 2018-11-29 17:26 路迢迢 阅读(4406) 评论(0) 推荐(0) 编辑
摘要:encrypt.fail-on-error true 标记说,如果存在加密或解密错误,进程将失败。 encrypt.key 对称密钥。作为一个更强大的替代方案,考虑使用密钥库。 encrypt.key-store.alias 商店中的钥匙别名 encrypt.key-store.location 密 阅读全文
posted @ 2018-11-27 14:57 路迢迢 阅读(451) 评论(0) 推荐(0) 编辑
摘要:double类型最多支持16位有效数字,且最大值只支持10^308次方,大一点的数字会变为科学计数法,小数精度不够等有一系列不方便的问题; 引进BigDecimal解决此类麻烦,弊端,BigDecimal没有double使用方便;具体如下; 警告警告!!!--> BigDecimal保留小数精度时, 阅读全文
posted @ 2018-11-23 14:56 路迢迢 阅读(671) 评论(0) 推荐(0) 编辑
摘要:使用缺省配置的WallFilter 结合其他Filter一起使用 这样,拦截检测的时间不在StatFilter统计的SQL执行时间内。 如果希望StatFilter统计的SQL执行时间内,则使用如下配置 指定dbType 有时候,一些应用框架做了自己的JDBC Proxy Driver,是的Drui 阅读全文
posted @ 2018-11-19 16:27 路迢迢 阅读(3155) 评论(0) 推荐(0) 编辑
摘要:org.springframework.jdbc.UncategorizedSQLException: ### Error querying database. Cause: java.sql.SQLException: sql injection violation, syntax error: 阅读全文
posted @ 2018-11-19 16:09 路迢迢 阅读(1743) 评论(0) 推荐(0) 编辑
摘要:在properties标签里自定义标签,引用时${java.version} 阅读全文
posted @ 2018-11-09 14:57 路迢迢 阅读(237) 评论(0) 推荐(0) 编辑
摘要:单依赖过滤 同依赖过滤直接处理:可以过滤一个或者多个,如果过滤多个要写多个<exclusion>。 多依赖过滤 阅读全文
posted @ 2018-11-09 11:24 路迢迢 阅读(2879) 评论(0) 推荐(0) 编辑
摘要:2 Collections.sort(List<T> list, Comparator<? super T> c); user类 输出结果: 1,user0022,user0043,user0064,user0015,user0035,user0056,user007 阅读全文
posted @ 2018-11-08 17:07 路迢迢 阅读(170) 评论(0) 推荐(0) 编辑
摘要:例子: 阅读全文
posted @ 2018-11-07 19:36 路迢迢 阅读(168) 评论(0) 推荐(0) 编辑
摘要:数据库连接池配置 阅读全文
posted @ 2018-11-06 16:53 路迢迢 阅读(1430) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示