上一页 1 2 3 4 5 6 7 8 9 ··· 88 下一页
摘要: 1、先通过:service mysqld status 查看mysql是否启动 (没装mysql service 也可通过 /etc/rc.d/init.d/mysqld status查看) 若没启动,则启动mysql:service mysqld start 2、方法: 修改/etc/my.con 阅读全文
posted @ 2020-05-13 16:58 那些年的代码 阅读(101782) 评论(3) 推荐(1) 编辑
摘要: public class test09 { public static void main(String[] args) { double a = 5000.44; double b = 100.12; double v = a / b; int i = new Double(v).intValue 阅读全文
posted @ 2020-05-11 19:49 那些年的代码 阅读(15524) 评论(0) 推荐(0) 编辑
摘要: 从页面传参数 is_send= 0 到mapper.xml 传入的这个参数类型如果不是字符串类型的话 在xml 经过if(test="is_send!=null and is_send !=''") 这样判断的话,那么这个0就会是空 if(test="is_send!=null ) 如果去掉and 阅读全文
posted @ 2020-05-07 14:04 那些年的代码 阅读(3143) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/bisal/article/details/82775403 阅读全文
posted @ 2020-05-07 14:01 那些年的代码 阅读(285) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/flyingrun/p/12781257.html 阅读全文
posted @ 2020-04-29 07:52 那些年的代码 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: select count(c.channel_name),c.channel_name from channel c GROUP BY c.channel_name HAVING count(c.channel_name)!=1 阅读全文
posted @ 2020-04-27 08:10 那些年的代码 阅读(564) 评论(0) 推荐(0) 编辑
摘要: f(n)=n*(n-1)*……*1 public int fun(int n) { if(n==0) return 1;//递归出口 return fun(n-1)*n;} 注:使用递归方法解决问题,必须有一个明确的终止条件,即递归出口。 阅读全文
posted @ 2020-04-27 07:43 那些年的代码 阅读(816) 评论(0) 推荐(0) 编辑
摘要: 在项目中,一般会将文件临时保存到缓存目录 当时使用 File.createTempFile("tmp", ext, (File) request.getServletContext().getAttribute(ServletContext.TEMPDIR)) 创建临时文件时,项目一直运行正常,然而 阅读全文
posted @ 2020-04-26 08:57 那些年的代码 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: public class ListUtil { /** * 获取list中存放的最后一个元素 * @param list * @param <T> * @return */ public static <T> T getLastElement(List<T> list) { return list. 阅读全文
posted @ 2020-04-26 08:49 那些年的代码 阅读(24711) 评论(0) 推荐(1) 编辑
摘要: Date today = new Date();//获取今天的日期 Calendar c = Calendar.getInstance(); c.setTime(today); c.add(Calendar.DAY_OF_MONTH, 1); Date tomorrow = c.getTime(); 阅读全文
posted @ 2020-04-26 08:39 那些年的代码 阅读(16202) 评论(0) 推荐(3) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 88 下一页