摘要: 从List<User> 中获取 age最大的对象 Optional<User> optional= list.stream().max(Comparator.comparing(User ::getAge)); User maxEndCount = optional.get(); 阅读全文
posted @ 2020-04-29 15:47 打代码的小超人 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 在服务器上准备两个tomcat 端口分别改为8801、8802,准备两个war 包,index.js 分别显示 tomcat-8801,tomcat-8802 放入对应的tomcat 中,并启动它们 nginx 安装可参照 :https://www.cnblogs.com/xxoome/p/5866 阅读全文
posted @ 2020-03-31 10:13 打代码的小超人 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-29 10:20 打代码的小超人 阅读(603) 评论(0) 推荐(0) 编辑
摘要: mysql -u root -p 执行该命令时 报错 -bash: mysql: command not found 解决方法 执行 alias mysql=/usr/local/mysql/bin/mysql 问题解决 mysql -u root -p 执行该命令时 报错 Can't connec 阅读全文
posted @ 2020-03-20 16:50 打代码的小超人 阅读(141) 评论(0) 推荐(0) 编辑
摘要: $("#unit option").each(function () { var val = $(this).val(); var text = $(this).text(); if(val=="${model.unit}"){ $(this).attr("selected",true); } 阅读全文
posted @ 2020-03-18 15:22 打代码的小超人 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 在/etc/init.d路径下新建一个文件(这里以tomcat为例) vi /etc/init.d/tomcat 按i进入脚本编辑,开始写tomcat开机自动启动脚本; #!/bin/sh # chkconfig: 2345 80 90 # description: Auto-starts tomc 阅读全文
posted @ 2020-03-09 19:22 打代码的小超人 阅读(278) 评论(0) 推荐(0) 编辑
摘要: linux 下配置 redis开机自动启动 步骤: 1、设置redis.conf中daemonize为yes,确保守护进程开启。 2、编写开机自启动脚本 vi /etc/init.d/redis看清楚目录,是在 etc/init.d下新建redis文件 ,为什么,因为 linux开机会 执行这个目录 阅读全文
posted @ 2020-03-06 16:28 打代码的小超人 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 使用密码连接以下参数 得改为falseq 阅读全文
posted @ 2020-03-06 13:46 打代码的小超人 阅读(236) 评论(0) 推荐(0) 编辑
摘要: In file included from adlist.c:34:0: zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录 错误信息: In file included from adlist.c:34:0:zmalloc.h:50:31: 致命 阅读全文
posted @ 2020-03-05 11:21 打代码的小超人 阅读(3123) 评论(0) 推荐(0) 编辑
摘要: 1.查看jdbc.properties url链接是否指定了数据编码格式 url = jdbc:mysql://xx.x.xx.xxx:3306?useUnicode=true&characterEncoding=utf8 2.如果jdbc.properties已经设置还是出现该错,则查看数据库连接 阅读全文
posted @ 2020-02-03 20:26 打代码的小超人 阅读(287) 评论(0) 推荐(0) 编辑