日常问题
Z-T
这个作者很懒,什么都没留下…
展开
-
关于使用JSON.toJSONString方法转换json后参数丢失问题
正常驼峰命名是没问题的,但是部分属性命名导致转换后命名不一致问题。比如is开头的private boolean isApply;使用IDEA快捷键生成set/get方法 如图:和平时生成的命名规范不一致。在JSON.toString方法转换中就会直接改变参数名称变成apply,导致你如果使用该参数会发现转换后参数丢失问题。解决方法:修改下set/get命名就可以。还...原创 2020-04-08 15:53:24 · 4681 阅读 · 0 评论 -
关于Jboot读取不到配置文件
在项目中修改端口,但是启动后还是默认8080! 配置文件中如下:#type default undertow (support:undertow)jboot.server.type=undertowjboot.server.host=jboot.server.port=9111jboot.server.contextPath=怎么看都对呀!找到JbootSe...原创 2018-08-17 18:07:05 · 1229 阅读 · 0 评论 -
使用Mybatis多条件非空验证查询错误
在开发中遇以下错误,在使用xml文件where语句时,我类A引用类B,前台根据类B属性查询A的信息。<select id="selectCommodityList" parameterType="com.zwyl.kks.commodity.entity.Commodity" resultMap="commodityMap"> SELECT c.comm...原创 2017-12-11 15:29:03 · 1557 阅读 · 0 评论 -
SourceTree许可证
试用期过了,不让使用。注册页连接不到需要翻墙。在下面文章有许可证,可以直接使用。下次可以直接来拿!https://blog.csdn.net/ljm_503909378/article/details/53992439...原创 2018-05-11 11:34:29 · 365 阅读 · 0 评论 -
Mybatis无效绑定语句
遇到以下问题本以为是很简单,xml中sql的ID没有对应接口所以没有找到或者没有找到mapper.xml文件查看配置也没有问题,mybatis-plus: mapper-locations: classpath:mapper/*.xml在然后检查xml文件中<mapper namespace="com.zwyl.licen...原创 2018-05-10 18:42:06 · 11007 阅读 · 5 评论