java
痛言、涩语゛
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
时间date工具
package com.gzlp.core.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author:Neptune * @Description:DateUtil 提供一些常用的时间想法的方法 */ public原创 2020-09-27 18:44:48 · 249 阅读 · 0 评论 -
安装redis
1.安装C语言环境 yum install gcc-c++ 2.下载redis 2.1解压 tar zxvf redis-3.0.0.tar.gz 3.移动redis mv 文件 路径(usr)如:mv redis-4.0.11 usr 4.查看目录 ll 5.进入目录 cd usr 6.安装redis make install PREFIX=安装路径 如:make install P...原创 2019-11-06 20:19:49 · 173 阅读 · 0 评论 -
Linux命令,链接
https://blog.youkuaiyun.com/xufei512/article/details/53321980原创 2019-11-06 17:04:59 · 172 阅读 · 0 评论 -
实现成功的状态代码封装类
package com.zyq.pojo; import java.util.HashMap; import java.util.Map; /** * * 状态信息返回类 * * * */ public class Mag { private int code; private String msg; private Map<String...原创 2019-10-25 16:28:17 · 231 阅读 · 0 评论 -
冒泡排序
冒泡排序 两个相邻的元素进行比较,一共有两个循环,外面的循环比较的次数是数组长度-1,里面的是长度-1-外面的变量。两个循环都是从0开始遍历 public class hello { public static void main(String[] args) { int[] a=new int[]{5,4,2,3,9,8};//创建数组,需要new 存放在堆内存中 for(int...原创 2019-10-23 19:15:14 · 189 阅读 · 0 评论 -
ajax返回数据的遍历$.each(json,function(index,item)
$.each(json,function(index,item) 里面的index代表当前循环到第几个索引, item表示遍历后的当前对象, 比如json数据为: [{“name”:“a”},{“name”:“b”},{“name”:“c”}] 使用foreach遍历后, index,item 依次为, 0,{“name”:“a”} 1,{“name”:“b”} 2,{“name”:“c”} ...原创 2019-10-16 08:49:37 · 962 阅读 · 0 评论 -
NoSuchMethodException: com.zyq.pojo.User.<init>()
NoSuchMethodException: com.zyq.pojo.User.()## 标题 实体类没有空的构造方法原创 2019-09-06 19:19:56 · 221 阅读 · 0 评论 -
在springboot整合mybatis时,出现错误
he method’s class, org.apache.ibatis.builder.xml.XMLConfigBuilder, is available from the following locations:* 把依赖 <!--<dependency> <groupId>org.apache.ibatis</groupI...原创 2019-09-08 10:33:15 · 631 阅读 · 0 评论 -
springboot+mybatis+thymeleaf,在如果出现下面的错误
This application has no explicit mapping for /error, so you are seeing this as a fallback. Sun Sep 08 14:30:22 CST 2019 There was an unexpected error (type=Internal Server Error, status=500). Error re...原创 2019-09-08 14:42:46 · 340 阅读 · 0 评论 -
mapper路径配置错误
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: I...原创 2019-09-08 17:52:10 · 543 阅读 · 0 评论 -
没有连接数据库
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be ...原创 2019-09-09 23:57:05 · 433 阅读 · 0 评论 -
Spring的注解Autowired 的自动注入属性值,出现空指针异常问题
**@TOCException in thread “main” java.lang.NullPointerException at com.zyq.print.Print.prints(Print.java:26) at com.zyq.test.Test.main(Test.java:23) 出现这样的情况,是因为在applicationContext.xml文件中没有配置扫描注解,此时需要 ...原创 2019-09-03 21:03:08 · 1699 阅读 · 0 评论
分享