package com.nicefish;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*@SpringBootApplication(scanBasePackages={
        "com.nicefish.config","com.nicefish.common","com.nicefish.service",
        "com.nicefish.message","com.nicefish.swagger","com.nicefish.web"})*/
@SpringBootApplication
@RestController
@MapperScan(basePackages = {"com.nicefish.mapper"})
public class NicefishApplication {

    @RequestMapping("/")
    public String greeting() {

        return "Hello World,kimmking!";
    }

    public static void main(String[] args) {

        SpringApplication.run(NicefishApplication.class, args);
    }
}

@@ -27,168 +27,590 @@
 ort 
-org.mybatis.spring.annotation.MapperScan;%0Aimport org.springframework.boot.SpringApplication;%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication
+com.alibaba.fastjson.serializer.SerializerFeature;%0Aimport com.alibaba.fastjson.support.config.FastJsonConfig;%0Aimport com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;%0Aimport org.mybatis.spring.annotation.MapperScan;%0Aimport org.springframework.boot.SpringApplication;%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication;%0Aimport org.springframework.boot.autoconfigure.web.HttpMessageConverters;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.http.converter.HttpMessageConverter
 ;%0Aim
@@ -734,16 +734,68 @@
 oller;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 /*@Sprin
@@ -1162,25 +1162,24 @@
 reeting() %7B%0A
-%0A
         retu
@@ -1258,17 +1258,16 @@
 args) %7B%0A
-%0A
         
@@ -1327,11 +1327,713 @@
 );%0A    %7D
+%0A%0A    @Bean%0A    public HttpMessageConverters fastjsonHttpMessageConverter()%7B%0A        FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();%0A        FastJsonConfig jsonConfig = new FastJsonConfig();%0A        jsonConfig.setSerializerFeatures(%0A                SerializerFeature.PrettyFormat,%0A                SerializerFeature.QuoteFieldNames%0A        );%0A        jsonConfig.setDateFormat(%22yyyy-MM-dd HH:mm:ss%22);%0A        converter.setFastJsonConfig(jsonConfig);%0A        List%3CMediaType%3E mediaTypes = new ArrayList%3C%3E();%0A        mediaTypes.add(MediaType.APPLICATION_JSON_UTF8);%0A        converter.setSupportedMediaTypes(mediaTypes);%0A        return new HttpMessageConverters(converter);%0A    %7D
 %0A%7D%0A

add fastjson