05 2020 档案

摘要:Linux监控软件开源排行,根据Star数量来 软件名 开发语言 Star数量 github地址 说明 ntopng Lua/c++ 3.7K https://github.com/ntop/ntopng 安装简单,要安装Redis LibreNMS Php 2.1K https://github. 阅读全文
posted @ 2020-05-25 17:32 为乐而来 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:项目本来使用的是SrpingMVC+Hibernate,想要加入Jpa到项目中,常用的功能没问题 但是在Service中要使用EntityManager如下 @PersistenceContext public EntityManager em;// 类似hibernate session //给子 阅读全文
posted @ 2020-05-18 13:25 为乐而来 阅读(4123) 评论(0) 推荐(0) 编辑
摘要:jpa测试Dao.getOne的时候报错could not initialize proxy [com.modelname#1] - no Session 测试代如下 @Test public void findOne_getOne() { System.out.println(" findPage 阅读全文
posted @ 2020-05-13 12:52 为乐而来 阅读(646) 评论(0) 推荐(0) 编辑
摘要:以下都是基于spring-data-jpa2.1.8 1.单纯分页,没有条件 /*** * 直接用dao调用分页 */ @Test public void findPageDao1() { try { System.out.println(" findPage " ); //jpa 1.*写法 // 阅读全文
posted @ 2020-05-12 13:55 为乐而来 阅读(3184) 评论(0) 推荐(0) 编辑
摘要:jpa2.0以下用 new PageRequest jpa2.0及以上由 PageRequest.of替代 jpa2.0以下new Sort jpa2.0及以上由 Sort.by 替代 这是对比图片: 以下是上面截图的代码: @Test public void now() { List<Sort.O 阅读全文
posted @ 2020-05-11 17:22 为乐而来 阅读(822) 评论(0) 推荐(0) 编辑
摘要:1.下载安装地址(我下的是windows版本):https://min.io/download#/windows 2.新建一个目录存放minio文件,我建的文件名叫 D:\minioData,CMD进入刚刚下载的minio.exe所在目录, 直接在cmd下运行:minio.exe server D: 阅读全文
posted @ 2020-05-08 17:08 为乐而来 阅读(20333) 评论(0) 推荐(2) 编辑
摘要:1,停止mysql服务命令 systemctl stop mysqld 2,修改配置文件/etc/my.cnf 在[mysqld]下添加 skip-grant-tables 意思是忽略验证,保存并退出 3,启动Mysql命令 systemctl start mysqld 4,修改密码 执行命令:my 阅读全文
posted @ 2020-05-08 14:30 为乐而来 阅读(280) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示