All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.agileway.springboot.json.JsonConfiguration Maven / Gradle / Ivy

There is a newer version: 3.1.12
Show newest version
package com.jn.agileway.springboot.json;

import com.jn.easyjson.core.JSONFactory;
import com.jn.easyjson.core.factory.JsonFactorys;
import com.jn.easyjson.core.factory.JsonScope;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnMissingBean(JSONFactory.class)
public class JsonConfiguration {
    @Bean
    @ConditionalOnMissingBean({JSONFactory.class})
    public JSONFactory jsonFactory() {
        return JsonFactorys.getJSONFactory(JsonScope.SINGLETON);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy