- 博客(5)
- 收藏
- 关注
原创 mybatis把前端传过来的拼接字符串在oracle中查询,例如:前端传字符串“1,2,3“,查询时按照in(1,2,3)查询
mybatis:<if test="groupType != null and groupType !=''">GROUP_TYPE in<foreach collection="groupType.split(', ')" item="item" index="index" open="("separator=","close=")">#{item}</foreach></if>前端只需要把传过来的字符串用","分割,mybatis..
2022-05-31 14:46:10 289
原创 后端post请求传递参数,前端layui
@PostMapping("/transfer")public String transfer(@RequestParam("bankCardNo") Integer bankCardNo, @RequestParam("bankCardPassword") Integer bankCardPassword, @RequestParam("phoneNumber") Integer phoneNumber, @RequestParam("meony") In.
2021-06-09 10:50:50 1353
原创 MD5密码加密工具类复制过去就能用,拿走不谢.
把工具类放到你的项目中用MD5.encode(password)就能MD5加密package com.zl.util;public class MD5 { static final int S11 = 7; static final int S12 = 12; static final int S13 = 17; static final int S14 = 22; static final int S21 = 5; static final int S22 = 9; sta
2020-11-26 20:17:11 249
原创 java实现简单的邮箱发送自定义邮件内容的功能
Controller /** * 发送邮箱邮件 * * @param email * @return */ @RequireLogin @RequestMapping("sendEmail") @ResponseBody public JSONResult sendEmail(String email) { JSONResult json = new JSONResult(); try {
2020-11-26 20:09:02 671
原创 java代码实现简单的短信验证码发送,给验证码设置五分钟有效期,一次发送后60秒内不能重复发送,并把验证码放到session中,判断输入的号码是否与刚才发送的一致
标题 java代码实现简单的短信验证码发送,并把验证码放到session中,判断输入的号码是否与刚才发送的一致controllerpackage com.zl.controller;import com.zl.service.IVerifyCodeService;import com.zl.util.JSONResult;import com.zl.bean.vo.SMSUtil;import org.springframework.beans.factory.annotation.Autow
2020-11-26 19:48:10 3075
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人