Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ SpringMVC garbage processing     - Ubuntu and derivative system users how to install Pinta 1.5 (Linux)

- Install the latest Pinta graphics editing software on Ubuntu 14.04 (Linux)

- C language programming entry - macro definitions and enum (Programming)

- Linux system on how to use rsync to synchronize data (Server)

- Let the router be your security barrier against external attack (Linux)

- How to upgrade to Ubuntu 14.04 Ubuntu 14.10 (Linux)

- Java, extends and implements Usage (Programming)

- CentOS 6.5 installation and configuration Cobbler (Server)

- Ubuntu 14.04 CodeBlocks configuration manually compile Boost 1.57.0 (Linux)

- Compile Android libwebcore.so error occurs when solving (Programming)

- Android Studio Installation and Configuration Guide tutorial (Linux)

- Oracle 11R2 Grid Infrastructure execute root.sh script rootcrs.pl execution failed treatment (Database)

- Vim custom color (Linux)

- JavaScript basic tools list (Programming)

- Linux process management related content (Linux)

- Implement binary search algorithm in C language (Programming)

- SYN attack hacker attack and defense of the basic principles and prevention technology (Linux)

- How to monitor Nginx (Database)

- To control based on IP address routing policy under Linux (Linux)

- PLSQL often lose resolution process automatically disconnect the connection (Database)

  SpringMVC garbage processing
  Add Date : 2017-08-31      
  Recent modifications Spring transaction because the reasons for modifying the SpringMVC profile, but finally found the use of AJAX to obtain background data is garbled problem. Finally found because SpringMVC profile added tabs:

< Mvc: annotation-driven /> caused because before has such a configuration in the configuration file:

< Bean class = "org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
        < Property name = "messageConverters">
            < List>
                < Bean class = "org.springframework.http.converter.StringHttpMessageConverter">
                    < Property name = "supportedMediaTypes">
                        < List>
                            < Value> text / plain; charset = UTF-8 < / value>
                        < / List>
                    < / Property>
                < / Bean>
            < / List>
        < / Property>
    < / Bean>

    If the increase < mvc: annotation-driven /> tag, then this configuration will fail. Because of worry, not with the source code directly asked of the mother, there are users that add such code issues can be resolved:

    < Mvc: annotation-driven>
  < Mvc: message-converters>
      < Bean class = "org.springframework.http.converter.StringHttpMessageConverter">
          < Property name = "supportedMediaTypes">
              < List>
                  < Value> application / json; charset = UTF-8 < / value>
              < / List>
          < / Property>
      < / Bean>
  < / Mvc: message-converters>
< / Mvc: annotation-driven>

      This time editor being given that annotaion-driver tag can not contain child elements. I go, how does it deceive friends, later found to be low because the XSD file version, so I replaced the 3.2 version of the problem is solved. Such as the introduction of the code modify XSD:

      < ? 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: aop = "http://www.springframework.org/schema/aop" xmlns: tx = "http://www.springframework.org/schema/tx"
xmlns: util = "http://www.springframework.org/schema/util"
xmlns: mvc = "http://www.springframework.org/schema/mvc"
xsi: schemaLocation = "http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd ">
- Two strokes to improve development productivity Struts2 (Programming)
- ActiveMQ configuration Getting Started Tutorial (Server)
- Generators and iterators in Python (Programming)
- Expert advice: Do not use the computer security IE browser (Linux)
- Oracle GoldenGate encryption (Database)
- How to manage start-up applications in Ubuntu (Linux)
- CentOS 5.11 Open VNC access (Linux)
- Java Learning: elegant string (Programming)
- Do you know how to build the Linux kernel (Programming)
- Using Linux stat command to view the files (Linux)
- Convert MySQL date string to a NULL value exception handling (Database)
- Ubuntu 14.04 LTS NTFS partition can not access solution (Linux)
- Get basic information about Linux server script (Server)
- Linux shell string interception and stitching (Linux)
- 30 minutes with your Quick Start MySQL Tutorial (Database)
- Linux environment variable configuration and save places (Linux)
- Linux regex awk Comments (Linux)
- Java study notes: String (Programming)
- FastDFS installation and deployment (Server)
- To install Xen in Ubuntu 12.04 (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.