类的使用
org.springframework.web.servlet.view.json.AbstractJackson2View
使用AbstractJackson2View的程序包 程序包 说明 org.springframework.web.servlet.view.json Support classes for providing a View implementation based on JSON serialization.org.springframework.web.servlet.view.xml Support classes for providing a View implementation based on XML Marshalling.org.springframework.web.servlet.view.json中AbstractJackson2View的使用
org.springframework.web.servlet.view.json中AbstractJackson2View的子类 修饰符和类型 类 说明 class
MappingJackson2JsonView
Spring MVCView
that renders JSON content by serializing the model for the current request using Jackson 2'sObjectMapper
.org.springframework.web.servlet.view.xml中AbstractJackson2View的使用
org.springframework.web.servlet.view.xml中AbstractJackson2View的子类 修饰符和类型 类 说明 class
MappingJackson2XmlView
Spring MVCView
that renders XML content by serializing the model for the current request using Jackson 2'sXmlMapper
.