zno2

上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页

2023年6月2日 #

mysql 验证状态字段加索引的必要性

摘要: 假设某状态有:1未开始,2处理中,3已完成 随时间变化3越来越多,1和2则始终维系在少量 测试步骤: 1建表 CREATE TABLE `foo` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `status` int(1) DEFAULT 阅读全文

posted @ 2023-06-02 08:08 zno2 阅读(349) 评论(0) 推荐(0) 编辑

一种统计坐席"在线"、"离线"、"小休"的方法

摘要: 前言: 尽管感觉比较笨,但是也算是准确计算出了结果 思路是: 用户登录和登出这段时间有唯一会话ID标记用户每次状态切换都要记录一条数据 然后基于上述数据通过算法计算给定时间段内该用户的”在线“,”小休“,”离线“时间 难点: 性能算法 表结构及模拟数据: DROP TABLE IF EXISTS ` 阅读全文

posted @ 2023-06-02 08:08 zno2 阅读(41) 评论(0) 推荐(0) 编辑

jfreechart 排序算法动图

摘要: JFreeChart is a free 100% Java chart library that makes it easy for developers to display professional quality charts in their applications. https://w 阅读全文

posted @ 2023-06-02 08:08 zno2 阅读(6) 评论(0) 推荐(0) 编辑

深入了解定时任务(一)

摘要: 单词辅助记忆 scheduled 车堵了? 线索 java.util.concurrent.Future<V>site:spring.io taskhttps://docs.spring.io/spring-framework/docs/4.2.x/spring-framework-referenc 阅读全文

posted @ 2023-06-02 08:07 zno2 阅读(41) 评论(0) 推荐(0) 编辑

2023年6月1日 #

spring boot核心原理:@Conditional

摘要: 资料 https://docs.spring.io/spring-boot/docs/2.2.2.RELEASE/reference/html/howto.htmlhttps://docs.spring.io/spring-boot/docs/1.2.1.RELEASE/reference/html 阅读全文

posted @ 2023-06-01 17:13 zno2 阅读(26) 评论(0) 推荐(0) 编辑

spring boot 核心原理: DispatcherServlet

摘要: 引子:浏览器输入地址访问springboot controller 都经历了什么? 域名解析先不谈,springboot 使用的是内嵌tomcat作为web容器。而tomcat 使用的是Nio 处理 http1.1 ,经过层层过滤器最终到达servlet ,然后走的是servlet 生命周期。 sp 阅读全文

posted @ 2023-06-01 17:12 zno2 阅读(254) 评论(0) 推荐(0) 编辑

docker run 需求

摘要: 1. 当重启电脑时,容器自动启动 --restart always PolicyResult no Do not automatically restart the container when it exits. This is the default. on-failure[:max-retri 阅读全文

posted @ 2023-06-01 17:10 zno2 阅读(5) 评论(0) 推荐(0) 编辑

log4j.xml example

摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration debug="true" xmlns:log4j='http://jakart 阅读全文

posted @ 2023-06-01 17:10 zno2 阅读(18) 评论(0) 推荐(0) 编辑

docker 文档

摘要: Engine reference¶ Dockerfile reference Docker run reference Command line reference API Reference 阅读全文

posted @ 2023-06-01 17:10 zno2 阅读(5) 评论(0) 推荐(0) 编辑

Dockerized Zabbix

摘要: https://www.zabbix.org/wiki/Dockerized_Zabbix#Dockerized_Zabbix_Server_XXLhttps://github.com/monitoringartist/zabbix-xxl/tree/master/Dockerfile/zabbix 阅读全文

posted @ 2023-06-01 17:09 zno2 阅读(6) 评论(0) 推荐(0) 编辑

linux history command

摘要: history | grep somekeywords http://www.computerhope.com/unix/uhistory.htm 阅读全文

posted @ 2023-06-01 17:08 zno2 阅读(1) 评论(0) 推荐(0) 编辑

趋势,报告

摘要: https://www.google.co.jp/trends/explore?date=all&q=spring%20mvc,struts2 阅读全文

posted @ 2023-06-01 17:08 zno2 阅读(15) 评论(0) 推荐(0) 编辑

嵌套类,内部类

摘要: https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html public class Outer { private int a = 1; Outer() { System.out.println("Outer()"); Syste 阅读全文

posted @ 2023-06-01 17:07 zno2 阅读(12) 评论(0) 推荐(0) 编辑

i18n 国际化

摘要: Internationalization (i18n) 1. 语言是用户属性之一 2. 页面可以切换语言 3. 语言保存在登录信息中 session 4. 根据语言切换 message 5. message 文件通过后缀区分语言 xxx_EN.properties 、xxx_CN.propertie 阅读全文

posted @ 2023-06-01 17:07 zno2 阅读(9) 评论(0) 推荐(0) 编辑

按照官方指导 Install Docker on CentOS 时遇到的问题

摘要: https://docs.docker.com/engine/reference/ https://docs.docker.com/engine/installation/linux/centos/ 问题一: GPG key retrieval failed: [Errno 14] curl#6 - 阅读全文

posted @ 2023-06-01 17:07 zno2 阅读(30) 评论(0) 推荐(0) 编辑

删除恼人注释

摘要: 当用jd-gui.exe 反编译jar保存成java文件之后,会有许多注释,如下: /* 1: */ import java.io.File; /* 2: */ import java.io.IOException; /* 3: */ import java.io.PrintStream; /* 4 阅读全文

posted @ 2023-06-01 17:06 zno2 阅读(10) 评论(0) 推荐(0) 编辑

查找某文件夹下所有java文件(包括子文件下的文件)

摘要: <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.0</version> </dependency> import java.io.File; import java.i 阅读全文

posted @ 2023-06-01 17:06 zno2 阅读(76) 评论(0) 推荐(0) 编辑

Using platform encoding (Cp1252 actually) to copy filtered resources

摘要: [INFO] maven-resources-plugin:2.6:resources (default-resources) @ z-test [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resource 阅读全文

posted @ 2023-06-01 17:05 zno2 阅读(8) 评论(0) 推荐(0) 编辑

什么是 iaik

摘要: iaik.xml.crypto.xades.SignatureTimeStamp 下面这个是官网 http://www.iaik.tugraz.at/ 下面这个是for java https://jce.iaik.tugraz.at/ 缩写字母jce的意思是: Java™ Cryptography 阅读全文

posted @ 2023-06-01 17:05 zno2 阅读(58) 评论(0) 推荐(0) 编辑

ant 简单例子

摘要: 和Maven类似,ant有一个 build.xml 文件 一个 pom.xml 代表一个 Maven项目 一个build.xml 代表一个ant项目 <project name="MyProject" default="clean" basedir="."> <description> simple 阅读全文

posted @ 2023-06-01 17:04 zno2 阅读(15) 评论(0) 推荐(0) 编辑

HashUtils.java 工具类

摘要: import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class HashUtils { private static String[] hexCode = { "0", " 阅读全文

posted @ 2023-06-01 17:04 zno2 阅读(58) 评论(0) 推荐(0) 编辑

linux 查看磁盘使用情况

摘要: 查看当前磁盘使用情况 df -h . 查看所有磁盘使用情况 df -h 查看指定磁盘使用情况 df -h ~ 阅读全文

posted @ 2023-06-01 17:03 zno2 阅读(20) 评论(0) 推荐(0) 编辑

linux 查看端口

摘要: step1 查进程号 syntax : netstat -apn|grep [port number] e.g. netstat -apn|grep 8888 explain -a, --all, --listening display all sockets (default: connected 阅读全文

posted @ 2023-06-01 17:03 zno2 阅读(37) 评论(0) 推荐(0) 编辑

什么是 CA

摘要: https://www.digicert.com/ https://cn.globalsign.com/ Certificate Authority 为网站颁发证书的权威机构 The more your customers trust you, the more they buy from you. 阅读全文

posted @ 2023-06-01 17:03 zno2 阅读(15) 评论(0) 推荐(0) 编辑

24) dependency:resolve 当依赖出现了问题

摘要: http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html 有依赖出现问题可以用这个插件解决一下 [INFO] Scanning for projects... [INFO] [INFO] [INFO] Buil 阅读全文

posted @ 2023-06-01 17:02 zno2 阅读(45) 评论(0) 推荐(0) 编辑

23) maven deploy:deploy-file 插件部署jar和pom

摘要: http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html 1. 为什么用这个插件 想直接上传文件到仓库,而不是部署maven项目到仓库 2. 部署哪个文件?file 3. 部署到哪?url 4. 部署时权限怎么 阅读全文

posted @ 2023-06-01 17:02 zno2 阅读(1436) 评论(0) 推荐(0) 编辑

jQuery 选择器及示例

摘要: 选择器实例选取 * $("*") 所有元素 #id $("#lastname") id="lastname" 的元素 .class $(".intro") 所有 class="intro" 的元素 element $("p") 所有 <p> 元素 .class.class $(".intro.dem 阅读全文

posted @ 2023-06-01 17:02 zno2 阅读(11) 评论(0) 推荐(0) 编辑

spring mvc handle 404

摘要: http://stackoverflow.com/questions/18322279/spring-mvc-spring-security-and-error-handling 正常情况下 no mapping found 不抛出异常 可以配置 <servlet> <servlet-name>di 阅读全文

posted @ 2023-06-01 17:01 zno2 阅读(13) 评论(0) 推荐(0) 编辑

ibatis 两次查询的问题

摘要: 10年前的项目框架中发现分页检索都是两次查询,执行的线程是相同的 一开始怀疑是 DAO 和 DAO2 中有重名的方法导致 后来经过反复调查,原来是在DAO中使用 queryForPaginatedList 导致的 com.ibatis.sqlmap.engine.impl.SqlMapSession 阅读全文

posted @ 2023-06-01 17:01 zno2 阅读(26) 评论(0) 推荐(0) 编辑

bui 给tree 加滚动条

摘要: <div id="t1" style="height: 400px;overflow:auto"></div> 这个样式加上就好使 阅读全文

posted @ 2023-06-01 17:01 zno2 阅读(8) 评论(0) 推荐(0) 编辑

配置ini文件

摘要: http://shiro.apache.org/configuration.html http://shiro.apache.org/web.html#Web-WebINIconfiguration 区别: 前者包含 [main], [users] and [roles] 后者追加:[urls] T 阅读全文

posted @ 2023-06-01 17:00 zno2 阅读(22) 评论(0) 推荐(0) 编辑

用户密码加密

摘要: http://shiro.apache.org/realm.html For example, let’s say your application uses username/password pairs for authentication. And due to the benefits of 阅读全文

posted @ 2023-06-01 17:00 zno2 阅读(18) 评论(0) 推荐(0) 编辑

svn 设置全局属性 svn:global-ignores

摘要: svn:global-ignores svn:ignores svn propset svn:global-ignores . -F E:\\propconfig.txt 【点】代表当前目录,可以指定成具体的working copy 路径 文件内容: .classpath .project .set 阅读全文

posted @ 2023-06-01 16:59 zno2 阅读(154) 评论(0) 推荐(0) 编辑

利用form beforesubmit 事件 做一个数据异步加载

摘要: 分页里这个start 参数可以初始化页面到第一页,其他的不行。 form.on('beforesubmit',function(ev) { //序列化成对象 var obj = form.serializeToObject(); obj.start = 0; store.load(obj); ret 阅读全文

posted @ 2023-06-01 16:59 zno2 阅读(42) 评论(0) 推荐(0) 编辑

自定义提交表单时的遮罩层

摘要: 可以自定义遮罩层,自带的不灵活,只能遮罩 form。这个可以遮罩整个body var form = new Form.Form({ action : 'saveRole', method : 'post', srcNode : '#J_Form', submitType : 'ajax', subm 阅读全文

posted @ 2023-06-01 16:58 zno2 阅读(48) 评论(0) 推荐(0) 编辑

BUI.Message.Show 可以自定义,比 BUI.Message.Alert 灵活

摘要: 可以取消X 按钮,可以自定义按钮,不是一个确认和一个取消。(只有一个确认) BUI.Message.Show({ msg:'some msg', icon:'success', closeable:false, cancel:function(){ return false; }, buttons: 阅读全文

posted @ 2023-06-01 16:58 zno2 阅读(33) 评论(0) 推荐(1) 编辑

mysql functions ,LAST_INSERT_ID() 或 自定义主键

摘要: http://dev.mysql.com/doc/refman/5.6/en/information-functions.html LAST_INSERT_ID() 这个值如果各个table 都有一个 自增的 id,那么各个table用各自的 LAST_INSERT_ID() 自定义: # 固定前缀 阅读全文

posted @ 2023-06-01 16:57 zno2 阅读(9) 评论(0) 推荐(0) 编辑

400 (Bad Request)

摘要: 出现这种情况极有可能是 form表单的字段类型与bean中的类型不一致,无法映射导致的 比如: <input type="radio" name="isAvailable" value="是" checked="checked"> 启用 java bean 中却定义成 private int isA 阅读全文

posted @ 2023-06-01 16:57 zno2 阅读(7) 评论(0) 推荐(0) 编辑

js 中的 this

摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script type="text/javascript"> var tool = { a : 'some msg', sho 阅读全文

posted @ 2023-06-01 16:56 zno2 阅读(5) 评论(0) 推荐(0) 编辑

CentOS 安装 svn server ..

摘要: https://subversion.apache.org/packages.html 1. 安装 Subversion yum install -y subversion 2.安装 mod_dav_svn yum install -y mod_dav_svn 3. 使用 svnadmin 命令创建 阅读全文

posted @ 2023-06-01 16:56 zno2 阅读(23) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页

导航