im.aop.loggers.messageinterpolation.DataDomainToStringStrategyConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of im-aop-loggers Show documentation
Show all versions of im-aop-loggers Show documentation
A handy and configurable sets of annotation-based loggers for Spring Boot that can
log every execution of a method when entering or exiting normally or abnormally, without you
writing a single line of code using aspect-oriented programming (AOP)
package im.aop.loggers.messageinterpolation;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Slice;
/**
* {@link Configuration} for Spring Data Domain {@link ToStringStrategy}
*
* @author Andy Lian
*/
@ConditionalOnClass({Pageable.class, Slice.class, Page.class})
@Configuration
class DataDomainToStringStrategyConfiguration {
@Bean
public PageableToStringStrategy pageableToStringStrategy() {
return new PageableToStringStrategy();
}
@Bean
public SliceToStringStrategy sliceToStringStrategy() {
return new SliceToStringStrategy();
}
@Bean
public PageToStringStrategy pageToStringStrategy() {
return new PageToStringStrategy();
}
}