
代码
无聊的代码
好无聊呦
如果不是无聊,谁来写这玩意!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java:org.apache.ibatis.reflection.ReflectionException 解决记录
这个问题是maven多模块项目,在本地调式通,在服务器上部署时出现的问题,由于在下功力尚浅,耗费了一天时间才解决。Caused by: org.apache.ibatis.reflection.ReflectionException: Could not set property 'companyPermitTime' of 'class com.***.***.CompanyCertification' with value '2031年03月23日' Cause: org.apache.ib.原创 2020-05-19 15:56:00 · 2099 阅读 · 0 评论 -
java 彩票大乐透 随机代码
public static void main(String[] args) { Set set = new HashSet(); Set set2 = new HashSet(); String[] a = {"01","02","03","04","05","06","07","08","09","10", "11","12","13","14","15","16","17","18","19","20",原创 2020-05-13 17:08:55 · 3425 阅读 · 3 评论 -
java二分查找代码
// 二分使用在有序的数据查询中 public static void main(String[] args) { ArrayList arrayList = new ArrayList(); arrayList.add(1); arrayList.add(3); arrayList.add(4); arrayList.add(5); arrayList.add(6); arrayL原创 2020-05-13 16:09:43 · 385 阅读 · 0 评论 -
java 冒泡 代码
public static void main(String[] args) { System.out.println("十个数"); Scanner scanner = new Scanner(System.in); int num; ArrayList arrayList = new ArrayList(); for (int i = 0; i <10 ; i++) { num = scanne原创 2020-05-13 15:27:34 · 350 阅读 · 0 评论 -
java 代码模拟银行操作
闲着没事玩。public static void main(String[] args) { System.out.println("输入密码"); Scanner scanner = new Scanner(System.in); String line = scanner.nextLine(); if (line.equals("123456")){ System.out.println("1.取");原创 2020-05-13 14:39:02 · 735 阅读 · 0 评论 -
win10配置vue环境
配置vue环境:1.node.js下载后然后安装。2.npm 以管理员(管理员)身份运行cmd, node -v 查看node版本, npm -v 查看npm版本, where node 查看node安装位置 。 由于安装在非系统盘,目录会丢失,所以主动创建目录,设置路径能够把通过npm安装的模块集中在一起,便于管理,设置成功后,后续用命令cnpm install XXX -...原创 2020-04-03 14:05:17 · 773 阅读 · 0 评论 -
js随机数
可根据自己需要自己修改。function random(flag, min, max){ var str = "", range = min, arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', ...原创 2020-04-03 09:11:03 · 373 阅读 · 0 评论 -
Redis JedisPool的配置参数详解
JedisPool的配置参数大部分是由JedisPoolConfig的对应项来赋值的。redis.host=localhostredis.port=6379redis.timeout=10redis.password=123456redis.poolMaxTotal=1000redis.poolMaxIdle=500redis.poolMaxWait=500maxActive:控制...原创 2020-03-25 20:19:43 · 2566 阅读 · 0 评论 -
if语句使用boolean值做判断 java
public class test { public static void main(String[] args) { boolean flag = false; if (flag){ System.out.println("true"); } if (!flag){ Syst...原创 2020-03-25 19:55:29 · 6361 阅读 · 0 评论 -
MyBatis与MySQL对应数据类型
1.类型对应2.时间对应原创 2020-03-24 21:47:03 · 398 阅读 · 0 评论 -
idea 中mybastis报错 Invalid bound statement (not found)
**mybatis爆出org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):** 本来下午带着耳机听着歌,非常开心的写BUG,写着写着突然就报错了,仔细一看, 这小问题,自己能想到的方法都用了,可就是不知道为什么mybatis就是找不到对 应的xml文件。我也是找了一个多小时,配置...原创 2020-03-10 21:21:10 · 186 阅读 · 0 评论 -
Java 时间格式
基础时间格式转换常用的日期格式化转换符具体应用方法,如下示例: Date date=new Date(); String year=String.format("%tY",date); String month=String.format("%tB",date); String day=String.format("%td",date); String...原创 2020-02-27 16:22:39 · 512 阅读 · 0 评论