自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 springbioot使用lettuce集成redis

在 springboot 1.5.x版本的默认的Redis客户端是 Jedis实现的,springboot 2.x版本中默认客户端是用 lettuce实现的。添加依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data

2021-03-08 17:45:20 228 2

原创 项目中用过的@Async注解使用

@Async注解使用spring托管线程池配置使用spring托管线程池配置threadPool:  maxPoolSize: 30  keepAliveTime: 60  queueCapacity: 1000  corePoolSize: 10@Configuration@EnableAsyncpublic class ThreadPoolTaskConfig { @Value("${thread

2021-03-08 17:26:51 592

原创 获取Element 中时间组件el-date-picker的时间

DateTimePicker 日期时间选择器的 Attributes 中有value-format 这个参数,我们可以通过他来设置我们需要的时间格式,如:“YYYY-MM-DD HH:MM:SS”<el-date-pickerv-model="myTime"type="datetime"format="yyyy-MM-ddHH:mm:ss"value-format="yyyy-MM-ddHH:mm:ss"placeholder="选择日期"></el-date-pick

2021-03-08 16:41:42 1198

原创 docker run -it centos /bin/bash 后面的 bin/bash的作用

首先,docker run -it centos 的意思是,为centos这个镜像创建一个容器, -i和-t这两个参数的作用是,为该docker创建一个伪终端,这样就可以进入到容器的交互模式?(也就是直接进入到容器里面)后面的/bin/bash的作用是表示载入容器后运行bash,docker中必须要保持一个进程的运行,要不然整个容器启动后就会马上kill itself,这样当你使用docker ...

2019-09-11 10:12:39 2007

转载 【转】docker阿里云镜像加速

https://www.cnblogs.com/liaojie970/p/8994389.html

2019-09-10 13:19:21 74

原创 thymeleaf自己用过的地方

这个模版引擎还是难用,不过菜是原罪,几个用到的地方,整理一下<ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="layadmin-system-side-menu"> <li th:each="menu : ${menus}" data-name="home" class="layui-na...

2019-09-04 16:00:10 152

原创 突然想到一个解决动态控制定时任务开关的方法

不是直接控制定时任务的开关,而是定时任务里每次执行的时候先去redis查询是否开启的参数,开启就执行,记录一下,尚未尝试。

2019-09-03 10:16:46 443

原创 如何调用layui.use()作用域里的方法

主要为了解决layui 自定义button onclick事件绑定参数的问题例如:<button type="button" class="layui-btn layui-btn-xs" onclick="tools.doExamine(21)">审核</button><button type="button" class="layui-btn layui...

2019-08-28 17:10:18 7771 12

原创 Springboot上传文件静态资源配置

application.properties# upload-path文件存放路径 root-path静态资源访问前缀# upload-path + 各模块文件夹路径组成保存文件的全路径# root-path + 各模块文件夹路径组成数据库保存的路径web.upload-path=E:/uploadFiles/web.root-path=/upload/wxAvatar.upl...

2019-08-13 11:08:42 849

转载 阮一峰RESTful API规范

一、URL 设计1.1 动词 + 宾语RESTful 的核心思想就是,客户端发出的数据操作指令都是"动词 + 宾语"的结构。比如,GET /articles这个命令,GET是动词,/articles是宾语。动词通常就是五种 HTTP 方法,对应 CRUD 操作。GET:读取(Read) POST:新建(Create) PUT:更新(Update) PATCH:更新(Upda...

2019-08-06 14:57:47 404

转载 HttpClient绕过证书验证实现https(pkIX path building failed)

转自http://blog.csdn.net/xiaoxian8023 /** * 绕过验证 * * @return * @throws NoSuchAlgorithmException * @throws KeyManagementException */ public static SSLContext createIgnoreVerifySSL...

2019-07-27 12:09:25 518

原创 springboot单元测试

package com.ameya360;import com.ameya360.Task.UpdateEnergyTask;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.s...

2019-07-05 09:59:42 69

原创 mybatis-plus代码生成器(推荐版本3.0.7.1,最新版启动报错)

<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.0.7.1</version></dependency>...

2019-07-03 16:48:15 2085 1

原创 maven打包跳过测试用例运行jar会没有主属性清单

可能是方式不对。。。记录一下。

2019-07-03 01:03:50 128

原创 thymeleaf资源引用无效的问题

原来用相对路径的方式引入静态资源文件,引入的方式不对正确的方法是直接引用static下静态资源配置静态资源访问官网文档:https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-developing-web-applications.html#boot-features-spr...

2019-07-03 00:50:22 1914

转载 java8 localdatetime格式化

https://vimsky.com/article/3745.html

2019-07-02 17:51:04 2227 2

原创 mvn打包报错Failure to transfer...from http://maven.aliyun.com

[WARNING] Failure to transfer com.ameya360.datacollect:Heracles-UpdateData:0.0.3-SNAPSHOT/maven-metadata.xml from http://maven.aliyun.com/nexus/content/groups/public was cached in the local reposi...

2019-06-21 10:45:46 4977

原创 context:property-placeholder标签无效

公司老的springmvc项目加入mybatis多数据源的东西,mybatis.xml引入jdbc.properties,<context:property-placeholder location="classpath:jdbc.properties" />报错:The matching wildcard is strict, but no declaration can ...

2019-06-18 11:33:23 2625 1

原创 记一次1688sdk报错

httpclient获取阿里的token结果{"access_token":"26c06d62-5515-4785-976f-a098f0f6c3e5","aliId":"3322462371","refresh_token":"37045f3a-32ad-4ef7-b31b-9820088eb8dd","resource_owner":"XXXXXXXXX","expires_in":"3...

2019-06-14 15:34:20 477

原创 使用dom4j和xStream解析xml

xml格式根据会议届次获取普通立案提案(不包括合并提案) 服务名称 GetLAProposalList 服务说明 根据会议届次获取普通立案提案列表(不包括合并提案) 输入值 &lt;?xml version="1.0" encoding="gb2312" ?&gt; ...

2019-02-15 14:41:23 363

原创 JDK对web service生成java代码

对接的对方的webService,使用的wsdl2java直接生成对方的代码放在自己的项目里使用。JDK自带了对web service生成java代码的功能打开jdk下的bin目录 看下能否找到"wsimport.exe"这个文件一般情况下都会有如果没有则说明你的JDK不支持这个功能然后在DOS窗口下输入wsimport 敲回车如果提示错误的话 说明你的JDK环境变量还没有...

2019-02-15 14:19:58 103

空空如也

空空如也

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

TA关注的人

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