- 浏览: 119206 次
- 性别:
- 来自: 北京
-
最新评论
-
flying3615:
在spring305上也遇到了这个exception,耽误了好 ...
junit 测试spring mvc Controller -
tengfeineu:
不好用啊....
oracle表数据用java导出为SQL文件的方法 -
命中注定1314:
还可以用HandlerInterceptor Adapter吧 ...
spring mvc 拦截器 -
limcosln1andx:
哎,我自己的那个controller test 基本和 htt ...
junit 测试spring mvc Controller -
cricket1981:
其实测试spring mvc controller有一个更好更 ...
junit 测试spring mvc Controller
文章列表
Controller
@Controller
public class DataSourceService {
@RequestMapping(value = "/bb/aa/{dataSource}", method = RequestMethod.GET)
public void datasource(HttpServletRequest request, HttpServletResponse response,
@PathVariable("dataSource") String dataS ...
Spring2.5 注解介绍(3.0通用)
注解说明
• 注册注解处理器
• 方式一:bean
拦截器配置:
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<bean class="cn.com.xxx.interceptor.UserAuthInterceptor" />
</mvc:interceptor>
<mvc:interceptor>
<mvc ...
contorller.xml配置
<bean
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<bean id="utf8StringHttpMessageConverter"
class="cn.com.xxx.util.UT ...
web.xml配置
<filter>
<filter-name>character</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param ...
web.xml配置
<listener>
<listener-class>cn.com.xxxx.listener.DataSourceCacheListener</listener-class>
</listener>
监听类
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class DataSourceCacheListener imp ...
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Properties for Proxool Con
将下面的压缩包解压后直接放入到elicpse的plugins目录下,如F:\eclipse\plugins。然后重启eclipse.
jdk eclipse下载地址
- 博客分类:
- java
JDK各种版本下载地址 http://java.sun.com/products/archive/index.html
eclipse各种版本下载地址
http://archive.eclipse.org/eclipse/downloads/
问题:tomcat时区相差八小时
修改:tomcat/bin下的catalina.bat 如下:
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
替换为set JAVA_OPTS=%JAVA_OPTS% -Duser.timezone=GMT+08 %LOGGING_MANAGER%
ignores result of java.io.InputStream.read(byte[], int, int)
This method ignores the return value of one of the variants of java.io.InputStream.read() which can return multiple bytes. If the return value is not checked, the caller will not be able to correctly handle the case where fewer bytes ...
Method com.hysoft.cache.mgmt.bulkload.DomLoad.getTotalNum(long, String) may fail to clean up java.sql.Statement
This method may fail to clean up (close, dispose of) a stream, database object, or other resource requiring an explicit cleanup operation.
In general, if a method opens a stream or o ...