- 博客(4)
- 收藏
- 关注
原创 docker下的mysql数据库root账号无权限,报错Access denied for user ‘root‘@‘localhost‘ (using password: YES)
使用root账号执行GRANT授权操作都会提示:Access denied for user ‘root’@‘localhost’ (using password: YES),刚开始怀疑是mysql的版本问题,在网上找了其他的提权方式均会报错,查询root账号所拥有的权限又没有发现问题。1.找到部署mysql时用到的docker-compose.yml文件,查看mysql容器映射到宿主机的配置文件目录,找到配置项volumes。注意修改配置后,需要重启mysql容器配置才会生效。
2023-12-20 14:19:16
3015
1
原创 errMsg: java.lang.ArrayIndexOutOfBoundsException: 0 at sun.font.CompositeFont.getSlotFontCompositeFo
at sun.font.CompositeFont.getSlotFontCompositeFont.java:375错误详解)
2023-10-16 18:10:11
476
1
原创 java spring字段名首字母大写转换
问题场景最近对接第三方接口,对方应该是很老的项目,要求接口传递的参数首字母必须是大写。框架的话本人用的spring全家桶,使用了lombok插件,在接口入参的时候@RequestBody会默认接收驼峰写法的字段,导致接收不到首字母大写的字段,例如下面这种解决方案在字段上面使用 @JsonProperty(“EN”)注解进行设置即可解决问题场景2在调用接口发送报文给对方时同样也会有这个问题,我用的是FastJson的toJSONString方法进行转换,这个方法同样会将字段解析成驼峰格式。使用@
2021-11-22 20:04:33
1566
原创 Correct the classpath of your application so that it contains a single, compatible version of xxx错误解
Correct the classpath of your application so that it contains a single, compatible version of xxx错误解决方法运行项目遇到以下问题:APPLICATION FAILED TO STARTDescription:An attempt was made to call a method that does not exist. The attempt was made from the following
2021-11-18 16:23:59
33180
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人