摘要: 第一种写法(1): 原符号 < <= > >= & ' "替换符号 &lt; &lt;= &gt; &gt;= &amp; &apos; &quot;例如:sql如下: create_date_time >= #{startTime} and create_date_time <= #{endTim 阅读全文
posted @ 2020-12-22 12:58 浅笑19 阅读(220) 评论(0) 推荐(0)
摘要: 配置文件application.properties中相关配置信息可以在部署以后修改,引用配置信息可以在代码和mybatis的映射文件中 1.JAVA代码 可以通过变量去读取 application.properties文件中配置信息 applicaiton.properties文件: public 阅读全文
posted @ 2020-12-22 12:56 浅笑19 阅读(812) 评论(0) 推荐(0)
摘要: 1、生成的字符串每个位置都有可能是str中的一个字母或数字,需要导入的包是import java.util.Random; //length用户要求产生字符串的长度 public static String getRandomString(int length){ String str="abcde 阅读全文
posted @ 2020-12-22 12:54 浅笑19 阅读(1044) 评论(0) 推荐(0)
摘要: //对密码进行 md5 加密 String md5Password = DigestUtils.md5DigestAsHex(user.getPassword().getBytes()); 阅读全文
posted @ 2020-12-22 12:53 浅笑19 阅读(1726) 评论(0) 推荐(1)
摘要: 解决方法是在response.getWriter()前加上response.setContentType("text/html; charset=UTF-8"); //response.setCharacterEncoding("utf-8");单纯的这么设置一样有乱码 正确做法: response 阅读全文
posted @ 2020-12-21 19:44 浅笑19 阅读(994) 评论(0) 推荐(0)
摘要: $.ajax( { url:'http://127.0.0.1:30080/api-a/quasiCustom/selectCustomList', type:'post', dateType:'json', beforeSend: function(xhr) { xhr.setRequestHea 阅读全文
posted @ 2020-12-21 14:24 浅笑19 阅读(1867) 评论(0) 推荐(0)
摘要: 转载至:https://www.cnblogs.com/Lyn4ever/p/11390497.html 1.Mapper的写法,返回的这个int是受影响的行号 int insertNewUser(User newUser); 2.xml的写法 <!--返回主键 形式1 --> <insert id 阅读全文
posted @ 2020-12-19 12:59 浅笑19 阅读(1050) 评论(0) 推荐(0)
摘要: 关于base64编码Encode和Decode编码的几种方式 Base64是一种能将任意Binary资料用64种字元组合成字串的方法,而这个Binary资料和字串资料彼此之间是可以互相转换的,十分方便。在实际应用上,Base64除了能将Binary资料可视化之外,也常用来表示字串加密过后的内容。如果 阅读全文
posted @ 2020-12-18 20:05 浅笑19 阅读(530) 评论(0) 推荐(0)
摘要: 今天整理github,初次使用,很多都不懂,所以遇到了克隆失败的问题,研究了大半天,后来。。。。。 打开Git Bash,克隆已有工程到本地: $ git clone https://github.com/zh-ya-jing/learn_robotium.gitCloning into 'lear 阅读全文
posted @ 2020-12-18 20:02 浅笑19 阅读(2833) 评论(0) 推荐(0)
摘要: 1、 重写configureViewResolvers方法 @Component public class WebMvcConfigurerAdapter implements WebMvcConfigurer { @Resource(name="thymeleafViewResolver") pr 阅读全文
posted @ 2020-12-15 19:30 浅笑19 阅读(1851) 评论(0) 推荐(0)