SpringMVC - ContentNegotiatingViewResolver用法
本文通过使用ContentNegotiatingViewResolver来让接口返回Json。贴出主要文件的内容。1. pom.xml文件project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=
原创
2018-01-25 19:07:37 ·
594 阅读 ·
0 评论