
J2EE
summerXJY100
我认为人是为要靠争一口气而活的。
展开
-
response设置编码
在java后台的Action代码或者Servlet代码中用response的方法来设置输出内容的编码方式,有以下三个方法: 1、response.setCharacterEncoding("UTF-8"); 2、response.setContentType("text/html;charset=UTF-8"); 3、response.setLocale(new ja转载 2012-09-19 16:56:33 · 504 阅读 · 0 评论 -
JSP,JS获得项目路径
JSP页面获取项目路径 /deviantART 输出使用调用EL表达式${ctx}JS页面获取项目路径 var pathName = window.document.location.pathname; var projectName = pathName.substring(0,pathName.sub原创 2012-10-29 15:57:24 · 706 阅读 · 0 评论 -
FlywayException Unable to check whether schema "lemon" empty
Lemon OA 1.6.1 新版本无法启动转载 2016-03-08 14:02:00 · 2425 阅读 · 0 评论 -
获取spring配置文件
读取Spring的配置文件applicationContext.xml的5种方法1.利用ClassPathXmlApplicationContext,这种方式配置文件应该放在类包同路径下Java代码:ApplicationContext ct=new ClassPathXmlApplicationContext("applicationContext01.xml")转载 2017-09-18 09:13:33 · 481 阅读 · 0 评论 -
Maven运行报错:-Dmaven.multiModuleProjectDirectory system propery is not set.
转载自:http://blog.youkuaiyun.com/sd4015700/article/details/44827327eclipse中使用maven插件的时候,运行run as maven build的时候报错设置项目的编译为JDK1.7以上-Dmaven.multiModuleProjectDirectory system propery is not set转载 2017-09-12 10:01:00 · 258 阅读 · 0 评论