上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页
摘要: 用的pytone3.8,很久没有搞python了,用vscode运行以前的py代码居然报错: Traceback (most recent call last): File "C:\Program Files (x86)\Python\Python38-32\lib\runpy.py", line 阅读全文
posted @ 2020-06-24 14:14 为乐而来 阅读(14268) 评论(1) 推荐(0) 编辑
摘要: 前后端分离开发时,有时候从entity实体中复制字段到前端要一个一个替换比较麻烦写了一个批量替换的方法 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Java entity to json</title> </head> <b 阅读全文
posted @ 2020-06-15 17:16 为乐而来 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 如下图 解决办法: 在URL后面添加参数即可: ?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC 阅读全文
posted @ 2020-06-03 20:56 为乐而来 阅读(12485) 评论(0) 推荐(0) 编辑
摘要: 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 为乐而来 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: 项目本来使用的是SrpingMVC+Hibernate,想要加入Jpa到项目中,常用的功能没问题 但是在Service中要使用EntityManager如下 @PersistenceContext public EntityManager em;// 类似hibernate session //给子 阅读全文
posted @ 2020-05-18 13:25 为乐而来 阅读(3918) 评论(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 为乐而来 阅读(635) 评论(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 为乐而来 阅读(3100) 评论(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 为乐而来 阅读(812) 评论(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 为乐而来 阅读(19817) 评论(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 为乐而来 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页