自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 314

原创 后端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 1397

原创 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 262

原创 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 735

原创 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 3173

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除