![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我遇见过的问题
shuxingcq
这个作者很懒,什么都没留下…
展开
-
安装和使用Brew的问题
1、“Running Homebrew as root is extremely dangerous and no longer supported.As Homebrew does not drop privileges on installation you would be giving allbuild scripts full access to your system.”解决方式:/u...原创 2018-03-12 19:39:05 · 979 阅读 · 0 评论 -
java随机产生验证码最简单方式
java随机产生六位验证码最简单方式方法一这是生成六位字符验证码%06d代表生成六位,不够的前面加0;int i = new Random().nextInt(1000000);String code = String.format("%06d", i);还可以简单点 String code = String.format("%06d", new Random().ne...原创 2018-03-25 16:54:09 · 2492 阅读 · 0 评论 -
Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方法
启动Spring的时候报出了这个错误 就是applicationContext.xml这个文件没有找到解决方法配置<context-paramter>参数<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:appli...原创 2018-04-03 17:10:10 · 1251 阅读 · 0 评论 -
Jrebel 最新激活方式(2018.07.26)
不知道为什么以前激活的不能用了,下面是最新激活的方式jrebel idea插件激活,亲测可用:在jrebel server处,写上:http://139.199.89.239:1008/88414687-3b91-4286-89ba-2dc813b107ce如果出现激活过期的情况,请重新生成guid,替换原来的guid即可邮箱随便写,即可激活。...原创 2018-07-10 10:20:07 · 12058 阅读 · 21 评论 -
mybatis 插入数据的时候返回主键
1. 如果使用的数据库支持自动生成主键(如:MySQL 和 SQL Server),那么您就可以简单地将 useGeneratedKeys 设置为”true”,然后使用 keyProperty 设置你希望自动生成主键的字段就可以了。例如,如果 Author 表使用一个字段自动生成主键,那么配置语句就可以修改为:<insert id="insertAuthor" parameterTy...转载 2018-10-29 16:56:43 · 282 阅读 · 0 评论