com.agileactors.crud.autoconfiguration.CrudAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agile-actors-spring-boot-crud-api Show documentation
Show all versions of agile-actors-spring-boot-crud-api Show documentation
This is a library that extends Spring Boot functionality and offers a convenient and easy way to expose a domain's CRUD (Create, Read, Update, Delete) operations.
The newest version!
package com.agileactors.crud.autoconfiguration;
import com.agileactors.crud.properties.SpringRestProperties;
import com.agileactors.crud.service.MappingService;
import com.agileactors.crud.service.MappingServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.convert.ConversionService;
@Configuration
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE)
@RequiredArgsConstructor
@EnableConfigurationProperties({SpringRestProperties.class})
public class CrudAutoConfiguration {
@Bean
public MappingService mappingService(SpringRestProperties springRestProperties,
ConversionService conversionService) {
return new MappingServiceImpl(springRestProperties, conversionService);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy