Spring MappingJacksonJsonView, how to tell to use it instead of JSP view?

后端 未结 4 1787
慢半拍i
慢半拍i 2021-01-03 07:30

I\'m trying to use MappingJacksonJsonView with Spring 3.0, without success. I don\'t know what I\'m doing wrong, I think the problem is that I don\'t know how t

4条回答
  •  情话喂你
    2021-01-03 08:33

    Adding the following worked in my case

    
    
    
            
        
    

    So basically we should try to resolve any view as a bean first

提交回复
热议问题