外置tomcat优化 Tomcat在各位JavaWeb从业者常常就是默认的开发环境,但是Tomcat的默认配置作为生产环境,尤其是内存和线程的配置,默认都很低,容易成为性能瓶颈. 幸好Tomcat还有很多的提升空间.下文介绍一下Tomcat优化,可以分为内存,线程,IO. 一:Tomcat内存优化, ...
分类:
其他好文 时间:
2018-08-08 10:42:34
阅读次数:
194
一:DOM方法生成XML 步骤: 1:创建DocumentBuilder:DocumentBuilder builder=new DocumentBuilder(); 2:创建dom对象:Document dom=builder.newDocument(); 3:创建dom中元素:Element e ...
分类:
其他好文 时间:
2018-08-07 21:23:44
阅读次数:
174
获取openSession和CurrentSession:session=HibernateSessionFactory.getSession();session=HibernateSessionFactory.getSessionFactory().getCurrentSession();1、getCurrentSession()与openSession()的区别?*采用getCurrentSe
分类:
Web程序 时间:
2018-08-06 15:21:04
阅读次数:
178
#include #include #include #define MaxSize 1000000 char *BigNumFactorial(int InputOrderMultiplier) { int *TempResult = malloc(MaxSize*sizeof(int)); in... ...
分类:
其他好文 时间:
2018-08-05 22:37:35
阅读次数:
251
想必这个问题在网上已经泛滥了,但是他们都是同一个答案,我来copy一下: 但是上面那些解决方案对于我遇到的 Invalid bound statement (not found) 错误并没什么用 经过几天的反复尝试,竟然发现就是这样一行代码导致的 ↓ 就是在配置sqlSessionFactoryBe ...
分类:
其他好文 时间:
2018-08-02 19:12:03
阅读次数:
131
原文:https://blog.csdn.net/qiangcuo6087/article/details/79041997 ActiveMQ 1. 下载windows办的activeMQ后,在以下目录可以启动: spring 2. 启动后会有以下提示 spring 3. 所以我们可以通过http: ...
分类:
编程语言 时间:
2018-08-02 15:57:27
阅读次数:
144
1.Scheduler工厂模式 2.SchedulerFactory类图 最常用的是StdSchedulerFactory工程类,其出那个键Scheduler的两种方式: 3. 回顾Quartz三个核心概念 1个job对应多个Trigger 5..Scheduler的主要函数 例一:测试:sched ...
分类:
其他好文 时间:
2018-08-02 15:04:12
阅读次数:
180
1、web.xml中注册监听器<listener><listener-class>com.activemq.common.InitComponent</listener-class></listener>2、InitComponent实现ServletContextListener,Applicat ...
分类:
其他好文 时间:
2018-08-02 01:52:14
阅读次数:
427
Maven配置 Maven配置依赖 Spring中配置 Mybatis。由Spring管理mybatis 直接在spring配置文件中设置Mybatis即可。 Spring-config.xml 内容如下 <?xml version="1.0" encoding="UTF-8"?> <beans x ...
分类:
编程语言 时间:
2018-08-01 14:12:32
阅读次数:
179
* 一个对象池的简单应用 tool tip tootip.html js/toolTip.js Run: A, B没有重复创建 * 通用对象池的实现 ...
分类:
编程语言 时间:
2018-07-31 19:22:47
阅读次数:
236