随笔分类 -  Java

摘要:利用<bind>标签来防止模糊查询的时候sql注入 <select id="......" parameterType="......" resultType="......"> select * from user where state=1 <if test="name != null"> <b 阅读全文
posted @ 2021-10-25 10:58 迷糊桃 阅读(343) 评论(0) 推荐(0) 编辑
摘要:样式如下: 饼状图页面所需代码: <div class="col-sm-6"> <div class="ibox float-e-margins"> <div class="ibox-title"> <div class="ibox-tools"> <a class="collapse-link"> 阅读全文
posted @ 2021-10-19 17:21 迷糊桃 阅读(435) 评论(0) 推荐(0) 编辑
摘要:后端: 1.Controller层 /** * 这里通过ModelMap把查询出来的List<model>传到前端 * 就是若依点击新增的跳转页面的同时,把数据带入进去 */ @GetMapping("/add") public String add(ModelMap mmap) { mmap.pu 阅读全文
posted @ 2021-10-18 19:34 迷糊桃 阅读(9511) 评论(0) 推荐(0) 编辑
摘要:1. 用法: 从配置properties文件中读取init.password 的值。 @Value("${init.password}") private String initPwd; 2. 在spring的配置文件中加载配置文件dbconfig.properties : <!-- 加载配置文件 阅读全文
posted @ 2021-10-15 17:23 迷糊桃 阅读(436) 评论(0) 推荐(0) 编辑
摘要:1、通过HttpServletRequest接收,适用于GET 和 POST请求方式 通过HttpServletRequest对象获取请求参数 @RestController @RequestMapping("/tools") public class InnerController { @Requ 阅读全文
posted @ 2021-10-15 10:08 迷糊桃 阅读(5462) 评论(0) 推荐(1) 编辑

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