mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 19:36:50 +08:00
application/json
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
package com.xboe.config;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
//@Configuration
|
|
||||||
public class JacksonConfig {
|
|
||||||
|
|
||||||
// @Bean
|
|
||||||
// public ObjectMapper objectMapper() {
|
|
||||||
// ObjectMapper mapper = new ObjectMapper();
|
|
||||||
// mapper.registerModule(new JavaTimeModule());
|
|
||||||
// mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY,true);
|
|
||||||
// return mapper;
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ public class CasesRecommendApi extends ApiBaseController {
|
|||||||
* @param casesRecommendVo
|
* @param casesRecommendVo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("/page")
|
@PostMapping(value = "/page",produces = "application/json")
|
||||||
public JsonResponse<PageList<CasesRecommend>> page(@RequestBody CasesRecommendVo casesRecommendVo) {
|
public JsonResponse<PageList<CasesRecommend>> page(@RequestBody CasesRecommendVo casesRecommendVo) {
|
||||||
PageList<CasesRecommend> page = iCasesRecommendService.page(casesRecommendVo.getPageIndex(), casesRecommendVo.getPageSize(), casesRecommendVo);
|
PageList<CasesRecommend> page = iCasesRecommendService.page(casesRecommendVo.getPageIndex(), casesRecommendVo.getPageSize(), casesRecommendVo);
|
||||||
// 组装查看率
|
// 组装查看率
|
||||||
|
|||||||
Reference in New Issue
Block a user