自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 java+mybatis 数据统计每天/月 并补全日期

public class RangeDateUtil {//////////////////////////////////////////// YearMonth //////////////////////////////////////////// /** * 获取间隔的月份列表 * @param preYear 开始月份 * @param endYear 截止月份 */ public static List<YearMonth> getRangeYears(Ye

2021-08-02 17:25:09 1312 3

原创 Mybatis-Plus按昨天、今天、明天、近?天,自定义起始时间查询

1. 前端需要2. 后端 0SQL 实现实体类主要字段:public class DemoEntity implements Serializable { private static final long serialVersionUID = 1L; @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ApiModelPro

2021-07-28 09:35:39 3191

原创 mysql-5.7.24-winx64解压版安装

1.下载安装包:链接:https://pan.baidu.com/s/1kXMFzrKzg-8EzbTswuQ9vQ提取码:x5bv2.安装:将下载好的压缩包放到自己喜欢的目录下,千万不要出现中文,切记,然后解压到当前文件夹3.配置:进入mysql-5.7.24-winx64文件夹,新建一个my.ini文件打开my.ini文件,粘贴如下内容:[mysql]# 设置mysql客户端默认字符集default-character-set=utf8[mysqld]# 设置3306端口po

2021-05-11 10:23:40 1044

原创 Element-ui中为Upload 上传添加表单校验

本人CSDN地址:链接template内: <el-form-item label="文件上传" prop="fileList"> <el-upload class="upload-demo" :data="upLoadData" :action="upLoadUrl" :on-remove="upLoadRemove" :on-success="upLoadS

2020-08-12 16:43:34 1156

原创 FTPClient文件夹不存在时新建

// 文件夹不存在时新建 if (!fTPClient.changeWorkingDirectory(remotePath)) { fTPClient.makeDirectory(remotePath); fTPClient.changeWorkingDirectory(remotePath); }

2020-08-09 11:16:21 884

原创 springboot使用FTPClient连接报错:java.io.ioexception: connection is not open

报错代码: FTPClient ftpClient = new FTPClient(); ftpClient.setConnectTimeout(1000 * 30);//设置连接超时时间 ftpClient.setControlEncoding("utf-8");//设置ftp字符集 ftpClient.enterLocalPassiveMode();//设置被动模式,文件传输端口设置 try { /.

2020-08-08 21:47:44 11418

原创 Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig

Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfigSpringBoot添加redis坐标启动报错,目前最新版坐标如下:控制台报错如下:解决办法:SpringBoot添加redis坐标启动报错,目前最新版坐标如下:<!-- springboot集...

2020-03-16 15:34:10 2809

原创 PPT模板下载

稻壳儿 传送门:http://www.docer.com/

2020-01-02 09:28:41 246

原创 ubuntu19.10网页不能播放视频

使用网上教程解决了,因为没有flash:sudo apt-get install ffmpegsudo apt-get install ubuntu-restricted-extrassudo apt-get updatesudo apt-get install flashplugin-nonfree但是,此时我的网易云音乐却没有声音了!!!虽然它还在播放音乐你一直播放音乐大概5分钟...

2019-12-21 19:48:56 733

原创 不可用端口

tcp [ 42 135 137 138 139 445 593 1025 1434 1068 3127 3128 3129 3130 4444 5554 9996 ] udp [ 1026 1027 1434 1068 5554 9996 1028 1433 135-139 ]

2019-12-17 11:07:26 365

原创 TypeError: Cannot read property 'compilation' of undefined

报错:soldier@soldier-RESCUER-R720-15IKBN:~/SOLDIER/IDE_project/webStorm_project/innovate-admin-vue$ npm run build> innovate-admin-vue@1.0.0 build /home/soldier/SOLDIER/IDE_project/webStorm_project...

2019-11-13 20:23:52 1176

原创 AssertionError [ERR_ASSERTION]: Task function must be specified,gulp版本不一致

报错信息:vue项目打包报错> gulpassert.js:339 throw err; ^AssertionError [ERR_ASSERTION]: Task function must be specified at Gulp.set [as _setTask] (/home/soldier/SOLDIER/IDE_project/webStorm...

2019-11-13 20:10:34 4174 2

原创 Vue项目install警告:found 3 vulnerabilities (2 low, 1 high)

最主要看最后面found 3 vulnerabilities (2 low, 1 high) run `npm audit fix` to fix them, or `npm audit` for details你可以不理不睬,这不影响我们运行项目(npm run dev),但是强迫症解决强迫症:但是,这会修改你的 package.json 和package-lock.jsonnp...

2019-11-13 20:02:50 33311 3

原创 Push rejected: Push to origin/master was rejected

Idea第一次提交代码到远程新仓库可以git push -u origin master -f

2019-11-13 19:55:11 143

原创 Ubuntu下mybatis逆向工程不报错也无文件生成

ubuntu下路径是./srcmac下./srcwindows 路径是.\src

2019-08-20 16:57:44 193

原创 layui+strust2多文件上传--不解之处

关于layui+strust2文件上传,action参数无需改变不论你上传多少个文件,当你把断点打在你的上传接口时,永远只会进入一次!!!但是,如果你上传3个文件,日志输出会总共执行执行3次所以可以看出,你前2个文件的上传,是自动执行的,执行时间都是一样的,但debug只能进入接口一次所以,想通过回调函数获取这些文件路径的兄弟,只需这么做即可可以看到,我上传3个文件,没...

2019-07-18 21:46:36 152

原创 hibernate使用criteria进行子查询并分页

hibernate使用criteria进行子查询并分页(无外键关联)背景:有一张活动表(volunteer_activity)和一张活动报名表(volunteer_sign_up)–存放志愿者活动报名记录代码:@Override public PageBean findAllVolunteerJoinActivity(String key, PageBean<Volun...

2019-06-13 17:15:54 989

原创 Strust2+POI导出exel表格且解决文件名中文乱码/不显示

第一步:下载并导入项目【[poi.3.17.jar](http://central.maven.org/maven2/org/apache/poi/poi/3.17/poi-3.17.jar)】第二步:配置strust.xml <action name="returnLate_*" class="com.stureturnlate.moudels.biz.action.return_la...

2019-06-11 09:42:32 309

原创 Ubuntu 18.04命令

*安装驱动包:sudo dpkg -i xx.deb*运行.sh文件:su./xxx.sh******或者********sudo sh ./install.sh*修改/xx/xxx文件:sudo gedit /xx/xxx*deepin-wine-for-ubuntu安装软件:git clone 'https://gitee.com/wszqkzqk/deepin-wi...

2019-03-11 21:14:35 1660

原创 Ubuntu 18.04开发环境的配置(联想拯救者R720)

Ubuntu 18.04开发环境的配置重中之重Ubuntu18.04备份与还原:参考博客:https://blog.csdn.net/sinat_27554409/article/details/78227496一. Ubuntu 18.04安装后的修改下载源及安装显卡驱动:1.找到软件和更新,在‘下载自’把源改成阿里云的:2.然后点击右边附加驱动,将驱动改为NVIDIA专有驱动:...

2019-03-10 00:51:21 583

原创 Object强转为实体类类型失败!!!!!!

我这是运用回调内部类的方法,实现对数据库的查询废话不多说,先上代码:Impl://用户登录 @Override public User login(String username, String password) throws Exception { String sql = "select * from user where username=? and ...

2018-12-07 18:28:14 9891

原创 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could.

Idea疯狂报错:网上的解决方法是这样子写spring Boot主类:并且在实体类中加“@Service”·············· 可是依然报错,解决方法:简单粗暴······...

2018-12-01 19:58:28 181

原创 Cannot resolve method

本人idea下拉项目,结果impl里的类满屏的红色## 解决方法:步骤: File --&gt; Settings --&gt; Plugins --&gt;搜索并安装lom即可本人换过Maven,重装Idea都没有用,均不是问题的关键所在,在即将重装系统之际,百度到了这个方法。非常感谢网友‘爱秋风清秋月明’的方法...

2018-12-01 11:15:57 9528 19

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除