- 博客(3)
- 收藏
- 关注
原创 2台服务器只执行一台的定时任务(redisson)
springboot2 下面的pom.xml org.redisson redisson 3.11.0 另外添加aop,为后面添加注释做准备 org.springframework.boot spring-boot-starter-aop 创建2个类,用于管理redis /** * 创建redis锁的类 * @author wangmin33 * */ public clas...
2019-12-26 16:34:29
2474
原创 mongodb基础操作
mongodb添加用户 只在admin数据库可用 db.createUser( … { … user: “admin”, … pwd: “Eam1986B2”, … roles: [ { role: “userAdminAnyDatabase”, db: “admin” } ] … } … ) 只在admin数据库可用 db.createUser( … { … ...
2019-12-25 14:36:54
204
原创 REST接口如何调用
public String sendWechat(OaWeChat oc) { String url = “################”; // OaWeChat oc=new OaWeChat(); // oc.setContent(“测试”); // 测试的时候设置 List list = new ArrayList<>(); list.add(“180905006”); o...
2019-12-25 09:17:27
1950
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人