- 博客(7)
- 收藏
- 关注
转载 Spring加载.properties与配置jndi
项目结构如下:其中jdbc.properties内容如下:migu-jndi=jdbc/migujs-jndi=jdbc/jsjsj-jndi=jdbc/jsjbeans-js.xml内容如下: <bean class="org.springframework.beans.factory.config.Property...
2016-04-12 11:35:00
339
转载 Struts中Action结果集路径解释
1 项目结构如下:可见message.jsp和validate.jsp都位于WebRoot的目录下;2 上图中,结果集的配置如下:<action name="regist" class="org.leegang.action.RegistAction"> <!-- 为两个逻辑视图配置视图页面 --> <result nam...
2016-03-31 17:36:00
148
转载 hibernate向mysql5插入中文,出现乱码
1 卸载mysql5,使用mysql5.52 hibernate.cfg.xml中hibernate.connection.url 设置如下,添加“?useUnicode=true&characterEncoding=utf8”<property name="hibernate.connection.url"> jdbc:mysql://localh...
2016-03-30 22:32:00
158
转载 No message found under code 'hello' for locale 'zh_CN'
Spring配置文件bean.xml中添加如下代码:<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename"> <value...
2016-03-25 12:35:00
1045
转载 application参数设置与使用
web.xml中 <context-param> <param-name>1</param-name> <param-value>用户名或密码为空, 请重试!</param-value> </context-param> <...
2016-03-25 11:01:00
771
转载 ModelAndView中设置List,jsp中获取
mav = new ModelAndView("view/frame/index");mav.addObject("menuList", menuList); jsp中 <% List<Integer> menuList = (java.util.List<Integer>) request.getAttribute("men...
2016-03-15 19:00:00
957
转载 jdbc数据源设置
jdbc.propertitesmigu-jndi=jdbc/migutomcat中context.xml<Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver" maxActive="50" maxIdle="10" maxWait="600000" name="jdbc/m...
2016-02-02 20:36:00
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人