昨天说的那个hibernate太简单了,所以就没发出来,今天教spring+springmvc //LoginAction.java package?org.mo.spring;
import?java.util.HashMap;
import?java.util.Map;
import?org.springframework.val...
分类:
其他好文 时间:
2014-12-24 12:04:09
阅读次数:
160
1.1. Classpath
工程目录
在web.xml文件如下配置:
配置spring
mvc 的核心servlet -->
servlet>
servlet-name>springservlet-name>
servlet-class>org.springframework.web.servle...
分类:
编程语言 时间:
2014-12-23 22:43:04
阅读次数:
306
applicationContext.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:...
分类:
其他好文 时间:
2014-12-23 19:39:31
阅读次数:
222
这个问题折磨了我整整一天,特此写出来帮助后来的小伙伴们少走弯路.
我先描述环境,你来看看是否和你的情况相似.
项目中使用了spring与log4j,使用org.springframework.web.util.Log4jConfigListener监听,log4j.properties中配置了${webapp.root}来获取web.xml中配置的webAppRootKey.大...
分类:
移动开发 时间:
2014-12-23 17:30:48
阅读次数:
168
一、Spring核心类概述。
Spring里面有两个最核心的类这是Spring实现最重要的部分。
1、DefaultListableBeanFactory
这个类位于Beans项目下的org.springframework.beans.factory.support包下。
XmlBeanFactory(位于org.springframework....
分类:
编程语言 时间:
2014-12-23 12:27:05
阅读次数:
147
(1)tomcat启动中报异常:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener(20141222-冬至-待解决) 1、解决过程:稍微百度了下,说是spring-web类没....
分类:
编程语言 时间:
2014-12-23 00:13:39
阅读次数:
174
之前项目中的web.xml中的编码设置: CharacterEncoding org.springframework.web.filter.CharacterEncodingFilter encoding UTF...
分类:
编程语言 时间:
2014-12-22 21:03:48
阅读次数:
189
1、首先使用maven构建一个web项目,目录结构如下 2、配置pom.xml ??<!--?spring??-->
????<dependency>
????????<groupId>org.springframework</groupId>
????????<artifactId>sprin...
分类:
编程语言 时间:
2014-12-22 16:27:36
阅读次数:
348
FilecfgFile=ResourceUtils.getFile("classpath:test.txt");或者org.springframework.core.io.Resource fileRource=newClassPathResource("test.xml");获取文件:fileRo...
分类:
编程语言 时间:
2014-12-21 21:55:11
阅读次数:
447
一直用oracle,好久没有用mysql,今天搭建了一个mysql的web开发环境。竟然抛出这个异常: Unknown?character?set:?‘utf8mb4‘
org.springframework.jdbc.CannotGetJdbcConnectionException:?Could?not?get...
分类:
数据库 时间:
2014-12-20 20:58:49
阅读次数:
401