- 博客(6)
- 收藏
- 关注
原创 动态sql的<if>标签 判断字符串参数是否为空
<select id="queryBidInfos" parameterType="String" resultType="BidInfo"> select * from bidInfo <where> <if test="bids != 'null'"> bid in (${bids}) </if> <if test="pids != 'null'"> .
2022-03-22 14:29:04
1817
原创 springcloud微服务eureka报错
错误详情: 1、Cannot execute request on any known server 2、Connection refused: connect 原因:在服务端和客户端的yml文件中,defaultZone写成了defaultzone 解决办法:defaultzone 改为 defaultZone 注意:服务器和客户端的defaultZone对应的地址需要一致 ...
2022-03-02 16:36:51
248
原创 thymeleaf模板解析出错
An error happened during template parsing (template: "class path resource [templates/emp/empCharts.html]") 目录结构: 错误代码片段: <script th:src="@{/js/lay-config.js}?v=2.0.0" charset="utf-8"></script> 原因:右大括号没有把路径全部包裹 正确代码片段: <script th:s.
2021-09-09 17:49:28
756
原创 layui数据表格获取不到json数据
json格式和layui要求返回的数据格式一致,但数据表格一直获取不到数据,显示如图所示; 解决方法: 在controller最后使用resp.getWriter().println(json);(json为已经获取到的格式正确的json对象) 打印后layui会自动解析并将其显示(该方法不需要返回值,也就是void,刚开始总以为需要给方法返回json数据,layui才能获取到,事实并非如此,使用上述语句打印就行) tips:若页面显示中文乱码,使用 resp.setContentTy...
2021-08-17 12:58:29
1317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人