摘要:转自 http://justsee.iteye.com/blog/723993Struts 2框架有两个核心配置文件:struts.xml和struts.properties 其中struts.xml文件主要负责管理应用中的Action映射,以及该Action包含的Result定义等。除此之外,Struts2框架还包含一个struts.properties文件,该文件定义了Struts 2框架的大量属性,开发者可以通过改变这些属性来满足应用的需求。struts.properties文件是一个标准的Properties文件,该文件包含了系列的key-value对象,每个key就是一个Struts
阅读全文
摘要:一、1. 实体bean package com.mybatisBean;public class User { private Integer id; private String name; private String age; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } pu...
阅读全文
摘要:启动多个eclipse 时,因为一个另一个启动报错,原因: 可能是 有一个 eclipse 中 的 tomcat 配置出错:preference中tomcat 配置 context declaration mode 应选中server.xml
阅读全文
摘要:KindEditor.ready(function(K) { window.editor = K.create('#desc',{ resizeType : 1, allowPreviewEmoticons : false, allowImageUpload : true,uploadJson: 'editor/jsp/upload_json.jsp', items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor'
阅读全文
摘要:处理乱码var editor=UE.getEditor('desc',{});var editor=UE.getEditor('desc',{ initialFrameWidth:500, initialFrameHeight:100, autoHeightEnabled:false, toolbars:[['fullscreen', 'source', '|', 'undo', 'redo','|','justifyleft', 'justi
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?><beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=&quo
阅读全文
摘要:package com.util.mail; /** * 发送邮件需要使用的基本信息 *author by wangfunhttp://www.5a520.cn 小说520 */ import java.util.Properties; public class MailSenderInfo { // 发送邮件的服务器的IP和端口 private String mailServerHost; private String mailServerPort = "25"; // 邮件发送者的地址 privat...
阅读全文
摘要:例子: //先new xml 读取private static final String CONFIG_PATH="configuration.xml";private static final XmlReader xml=new XmlReader(CONFIG_PATH);public List<CheckBean> jobsel=Constant.rzPerSelJob;public static final List<CheckBean> rzPerSelJob=new ArrayList<CheckBean>(); //静态赋值
阅读全文
摘要:Undeployment Failure could not be redeployed because it could not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running,which has locked one or more files. to correct the deployment you will need to stop the serve
阅读全文