spring mvc使用的一些注意事项
摘要:一天不进步,就是退步!1.静态文件的处理 可以使用配置,注意mapping的字段必须有/static/** 或者其它字段,否则直接使用/**所有的请求资源将映射成静态文件。 建议使用ngnix的动静分离。注意css,js,image等是静态文件,html文件也是。2. 注解使用 指明使用注解,且注解...
阅读全文
posted @
2015-05-15 09:44
一天不进步,就是退步
阅读(1212)
推荐(0)
Getting started with Apache Camel--转载
摘要:原文地址:http://www.javacodegeeks.com/2012/12/getting-started-with-apache-camel.htmlAbout Camel:Apache Camel is an open source project which is almost 5 y...
阅读全文
posted @
2015-05-06 18:03
一天不进步,就是退步
阅读(413)
推荐(0)
Logback日志使用详解
摘要:概述Logback建立于三个主要类之上:日志记录器(Logger),输出端(Appender)和日志格式化器(Layout)。这三种组件协同工作,使开发者可以按照消息类型和级别来记录消息,还可以在程序运行期内控制消息的输出格式和输出目的地。1.日志记录器(Logger):控制要输出哪些日志记录语句,...
阅读全文
posted @
2015-04-22 17:00
一天不进步,就是退步
阅读(29920)
推荐(1)
java 开源缓存框架--转载
摘要:原文地址:http://www.open-open.com/13.htmJBossCache/TreeCacheJBossCache是一个复制的事务处理缓存,它允许你缓存企业级应用数据来更好的改善性能。缓存数据被自动复制,让你轻松进行Jboss服务器之间的集群工作。JBossCache能够通过Jbo...
阅读全文
posted @
2015-04-20 09:06
一天不进步,就是退步
阅读(1675)
推荐(0)
Spring 3.1 Environment Profiles--转载
摘要:原文地址:http://gordondickens.com/wordpress/2012/06/12/spring-3-1-environment-profiles/ProfilesSpring 3.1 now includes support for the long awaited enviro...
阅读全文
posted @
2015-04-15 16:50
一天不进步,就是退步
阅读(3934)
推荐(0)
mysql重连,连接丢失:The last packet successfully received from the server--转载
摘要:原文地址:http://nkcoder.github.io/blog/20140712/mysql-reconnect-packet-lost/1.1 错误信息:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: T...
阅读全文
posted @
2015-04-14 20:07
一天不进步,就是退步
阅读(96213)
推荐(5)
Apache Shiro Architecture--官方文档
摘要:原文地址:http://shiro.apache.org/architecture.htmlApache Shiro's design goals are to simplify application security by being intuitive and easy to use. Shi...
阅读全文
posted @
2015-04-14 15:57
一天不进步,就是退步
阅读(9245)
推荐(0)
Http Message Converters with the Spring Framework--转载
摘要:原文:http://www.baeldung.com/spring-httpmessageconverter-rest1. OverviewThis article describeshow to ConfigureHttpMessageConverterin Spring.Simply put, ...
阅读全文
posted @
2015-04-14 13:19
一天不进步,就是退步
阅读(2024)
推荐(0)
Spring – ${} is not working in @Value--转载
摘要:原文:http://www.mkyong.com/spring/spring-is-not-working-in-value/Bymkyong|February 4, 2015| Last Updated : February 12, 2015A simple Spring@PropertySour...
阅读全文
posted @
2015-04-10 15:15
一天不进步,就是退步
阅读(2163)
推荐(0)
extremeComponents(ec)源码分析
摘要:eXtremeComponents(简称ec)是一系列提供高级显示的开源JSP定制标签,当前的包含的组件为eXtremeTable,用于以表形式显示数据。其本质是jsp的自定义标签,抓住这一点就抓住了ec的本源。1. Table定义我们先看一下标签的定义:extremComponents.tld,其...
阅读全文
posted @
2015-04-08 10:40
一天不进步,就是退步
阅读(2419)
推荐(0)
解读eXtremeComponents代码结构--转载
摘要:原文地址:http://blog.csdn.net/lark3/article/details/1937466大致整理了去年写的东西,罗列如下:ec是一系列提供高级显示的开源JSP定制标签,当前的包含的组件为eXtremeTable,用于以表形式显示数据。ec现在的版本是1.0.1,由Jeff Jo...
阅读全文
posted @
2015-04-03 17:01
一天不进步,就是退步
阅读(1933)
推荐(0)
Ambiguous mapping found. Cannot map 'xxxxController' bean method
摘要:1.背景今天要做一个demo,从github上clone一个springmvc mybatis的工程(https://github.com/komamitsu/Spring-MVC-sample-using-iBatis)打包成war后启动报错:org.springframework.beans.f...
阅读全文
posted @
2015-04-02 17:31
一天不进步,就是退步
阅读(40788)
推荐(0)
Spring(AbstractRoutingDataSource)实现动态数据源切换--转载
摘要:原始出处:http://linhongyu.blog.51cto.com/6373370/1615895一、前言近期一项目A需实现数据同步到另一项目B数据库中,在不改变B项目的情况下,只好选择项目A中切换数据源,直接把数据写入项目B的数据库中。这种需求,在数据同步与定时任务中经常需要。那么问题来了,...
阅读全文
posted @
2015-03-06 15:09
一天不进步,就是退步
阅读(36204)
推荐(5)
springMVC项目在jboss7中配置应用自己的log4j--转载
摘要:原文地址:http://www.xuebuyuan.com/1954635.htmlJboss7默认采用容器自己的log4j module,应用自己配置的log4j不起作用,需要应用做一些设置:以springMVC项目为例:1> 在WEB-INF下新建文件jboss-deployment-struc...
阅读全文
posted @
2015-03-04 21:06
一天不进步,就是退步
阅读(2903)
推荐(0)
spring Transaction Management --官方
摘要:原文链接:http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html12.Transaction Management12.1Introduction to Spring Fra...
阅读全文
posted @
2015-03-01 06:59
一天不进步,就是退步
阅读(7692)
推荐(0)
深入netty源码解析之一数据结构
摘要:Netty是一个异步事件驱动的网络应用框架,它适用于高性能协议的服务端和客户端的快速开发和维护。其架构如下所示:其核心分为三部分, 最低层为支持零拷贝功能的自定义Byte buffer; 中间层为通用通信API; 上层为可扩展的事件模型。现在我们从最低层的支持零拷贝功能的自定义Byte buf...
阅读全文
posted @
2015-02-15 17:05
一天不进步,就是退步
阅读(11037)
推荐(0)
netty Getting Started--reference
摘要:reference from:http://docs.jboss.org/netty/3.1/guide/html/start.html1.1. Before Getting Started1.2. Writing a Discard Server1.3. Looking into the Rece...
阅读全文
posted @
2015-02-11 22:11
一天不进步,就是退步
阅读(703)
推荐(0)
netty Architectural Overview --reference
摘要:reference from:http://docs.jboss.org/netty/3.1/guide/html/architecture.html2.1. Rich Buffer Data Structure2.2. Universal Asynchronous I/O API2.3. Even...
阅读全文
posted @
2015-02-11 22:08
一天不进步,就是退步
阅读(653)
推荐(0)
java.sql.SQLException: Lock wait timeout exceeded --转
摘要:org.springframework.dao.CannotAcquireLockException 的解决》 直接上bug 的详细信息:2012-03-12 15:20:31 XmlBeanDefinitionReader [INFO] Loading XML bean definition...
阅读全文
posted @
2015-02-03 17:06
一天不进步,就是退步
阅读(20305)
推荐(0)
Dynamic SQL--官方文档
摘要:https://ibatis.apache.org/docs/dotnet/datamapper/ch03s09.html3.9.Dynamic SQLA very common problem with working directly with ADO is dynamic SQL. It is...
阅读全文
posted @
2015-02-02 22:10
一天不进步,就是退步
阅读(748)
推荐(0)