摘要:
文件下载: @RequestMapping("/download") public ResponseEntity<byte []> download(HttpSession session){ //获得当前项目 ServletContext application = session.getServ 阅读全文
摘要:
Interceptor(拦截器) springmvc.xml的配置 <!-- 包扫描--> <context:component-scan base-package="com"/> <!-- 配置拦截器 --> <mvc:interceptors> <!-- 配置其中一个拦截器 --> <mvc:i 阅读全文
摘要:
各种配置文件1、log4j.properties日记配置文件# Global logging configurationlog4j.rootLogger=INFO, stdout# Console output...log4j.appender.stdout=org.apache.log4j.Con 阅读全文