摘要: 主要介绍Struts2的拦截器,结合实例说明。 代码结构: 关键代码: LoginCheckInterceptor.javapackage com.alfred.interceptor; import com.alfred.login.action.LoginAction; import com.alfred.regist.action.RegistAction; import com.ope... 阅读全文
posted @ 2016-04-13 21:35 临渊启明 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 常用的读取方式有ResourceBundle和Properties,两者的区别在于ResourceBundle通常是用于国际化的属性配置文件读取,Properties则是一般的属性配置文件读取。 一、ResourceBundle方式 实例: 关键代码: package com.alfred.main; import java.util.Locale; import java.util.Re... 阅读全文
posted @ 2016-04-13 21:06 临渊启明 阅读(10196) 评论(0) 推荐(0) 编辑