能源项目xml文件 -- springMVC-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
classpath:/org/springframework/beans/factory/xml/spring-beans-4.1.xsd
http://www.springframework.org/schema/context
classpath:/org/springframework/context/config/spring-context-4.1.xsd
http://www.springframework.org/schema/mvc
classpath:/org/springframework/web/servlet/config/spring-mvc-4.1.xsd"
default-lazy-init="true"> <context:component-scan base-package="com.lime.ibs" use-default-filters="false">
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller" />
<context:include-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice"/>
</context:component-scan> <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
<property name="messageConverters">
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json;charset=UTF-8</value>
<!-- <value>text/html; charset=utf-8</value> -->
</list>
</property>
<property name="writeAcceptCharset">
<value>false</value>
</property>
</bean>
</property>
</bean> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/" />
<property name="suffix" value=".jsp" />
</bean> <mvc:annotation-driven />
<!-- <mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**" />
<mvc:exclude-mapping path="/ammeter/perf"/>
<mvc:exclude-mapping path="/watermeter/perf"/>
<bean class="com.lime.ibs.web.filter.SessionInterceptor" />
</mvc:interceptor>
</mvc:interceptors> --> </beans>
能源项目xml文件 -- springMVC-servlet.xml的更多相关文章
- C# 操作XML文件,用XML文件保存信息
		
using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.IO ...
 - 使用Pull解析器生成XML文件和读取xml文件
		
有些时候,我们需要生成一个XML文件,生成XML文件的方法有很多,如:可以只使用一个StringBuilder组拼XML内容,然后把内容写入到文件中:或者使用DOM API生成XML文件,或者也可以使 ...
 - java读取xml文件报“org.xml.sax.SAXParseException: Premature end of file” .
		
背景:java读取xml文件,xml文件内容只有“<?xml version="1.0" encoding="UTF-8"?>”一行 java读取该 ...
 - Maven入门2-pom.xml文件与settings.xml文件
		
Maven入门2-pom.xml文件与settings.xml文件 本文内容来源于官网文档部分章节,settings.xml文件:参考http://maven.apache.org/settings. ...
 - 创建xml文件、解析xml文件
		
1.创建XML文件: import codecs import xml.dom.minidom doc=xml.dom.minidom.Document() print doc root=do ...
 - Java中使用DOM4J来生成xml文件和解析xml文件
		
一.前言 现在有不少需求,是需要我们解析xml文件中的数据,然后导入到数据库中,当然解析xml文件也有好多种方法,小编觉得还是DOM4J用的最多最广泛也最好理解的吧.小编也是最近需求里遇到了,就来整理 ...
 - Servlet(九):web.xml文件和server.xml文件
		
Web.xml 文件使用总结:作用: 存储项目相关的配置信息,保护 Servlet.解耦一些数据对程序的依赖.使用位置: 每个 Web 项目中Tomcat 服务器中(在服务器目录 conf 目录中)区 ...
 - 【maven】maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
		
使用maven创建web项目,选择war类型后,pom文件红叉 提示web.xml is missing and <failOnMissingWebXml> is set to true ...
 - 创建Xml文件与修改Xml文件
		
/// <summary> /// 修改节点 /// </summary> /// <param name="user">UserSafe 实体 ...
 - Android 解析XML文件和生成XML文件
		
解析XML文件 public static void initXML(Context context) { //can't create in /data/media/0 because permis ...
 
随机推荐
- 【项目管理和构建】十分钟教程,eclipse配置maven + 创建maven项目(三)
			
[项目管理和构建]十分钟教程,eclipse配置maven + 创建maven项目(三) 上篇博文中我们介绍了maven下载.安装和配置(二),这篇博文我们配置一下eclipse,将它和maven结合 ...
 - TortoiseGit安装与配置
			
TortoiseGit 简称 tgit, 中文名海龟Git. 海龟Git只支持神器 Windows 系统, 有一个前辈海龟SVN, TortoiseSVN和TortoiseGit都是非常优秀的开源的版 ...
 - JavaBean基础转载
			
JavaWeb:JavaBean基础 JavaBean基础 JavaBean简介: 1.JavaBean是一种可以重复使用的类,可以没有用户界面,主要负责业务数据或者处理事物(数据运算.操作数据库) ...
 - 【leetcode❤python】326. Power of Three
			
#-*- coding: UTF-8 -*- class Solution(object): def isPowerOfThree(self, n): if n<=0: ...
 - WWDC2016 Session笔记 - Xcode 8 Auto Layout新特性
			
目录 1.Incrementally Adopting Auto Layout 2.Design and Runtime Constraints 3.NSGridView 4.Layout Feedb ...
 - linux下的基本网络配置
			
第一种:使用命令修改(直接即时生效,重启失效)#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up说明:eth0是第一个网卡,其他依次为eth1,et ...
 - Creating List Item in Oracle D2k
			
Special Tips for List Items in Oracle D2k In this section, I shall discuss some special tips and tec ...
 - XPah学习
			
资料1: 来源:http://www.cnblogs.com/ChengDong/archive/2012/06/28/2567744.html 示例Xml: <?xml version=&qu ...
 - varchar(10)与nvarchar(10)有什么区别
			
前者是非unicode型,存储字符按1个算(内部空间存储占1字节),存储汉字的话按2个算, 就是可以存10个字符或者5个汉字 后者是unicode型,存储什么都是按1个算(内部空间存储占2字节), 就 ...
 - maven概念
			
1. 下载并解压Maven:Maven下载页2. 将环境变量M2_HOME设置为解压后的目录: 3. 将M2环境变量设置为M2_HOME/bin(在Windows上是%M2_HOME%/bin,在U ...