方法1:前端处理 使用URLEncoder.encode(参数,"UTF-8") 方法2:后端处理 使用POST方法
软件开发
JAVA LIST常用方法
过滤 [crayon-63d37797e544e080028269/] 排序 [crayon-63d37797e5458368962119/]
Springboot的CommandLineRunner与PostConstruct执行顺序
Application.java [crayon-63d37797e6eb2192055515/] MyPostConstruct.java [crayon-63d37797e6eba784512996/] MyCommandLineRunner.java [crayon-63d37797e6ebe470290924/] MyCommandLineRunner2.java [c...
NullPointerException没有异常栈打印
2020-05-25 09:45:17.961 [task-22] ERROR o.s.a.i.SimpleAsyncUncaughtExceptionHandler - Unexpected error occurred invoking async method 'public void dcp.bss.qrtz.job.service.VehicleAlarm.overspeed(dc...
javax.net.ssl.SSLHandshakeException
错误:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cer...
SpringBoot项目部署到Centos上启动很慢
场景:项目使用的是springboot开发。在本机启动,大概完成的时间是20s左右,但是部署到Centos6.5服务器上启动要300s以上。 原因: SHA1PRNG算法是基于SHA-1算法实现且保密性较强的伪随机数生成器。 在SH...
解决Springboot访问URL带特殊字符导致400错误问题
RFC 3986规范规定Url中只允许包含英文字母(a-zA-Z)、数字(0-9)、-_.~4个特殊字符以及所有保留字符(RFC3986中指定了以下字符为保留字符:! * ’ ( ) ; : @ & = + $ , / ? # [ ])。 2.1.3.RELEASE版本Spr...
JAVA应用高CPU排查定位
[crayon-63d37797e786f790612222/]
logback过滤器之EvaluatorFilter
EvaluatorFilter 求值过滤器,评估、鉴别日志是否符合指定条件。需要额外的两个JAR包,commons-compiler.jar和janino.jar 1.导包 [crayon-63d37797e7c1d751384344/] 2.配置 [crayon-63d37797e7c25946450324...
批量获取百度地图的行政区划电子围栏
获取行政区划的Demo地址:http://lbsyun.baidu.com/jsdemo.htm#c1_10 目的:批量获取大陆地区所有的省市区电子围栏坐标集。 实现: 获取省市区列表 遍历省市区列表并调用百度地图API进行查询 保...