com.github.dreamroute.sqlprinter.starter.anno.EnableSQLPrinter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlprinter-spring-boot-starter Show documentation
Show all versions of sqlprinter-spring-boot-starter Show documentation
print sql use real value replace '?' in sql fragment.
package com.github.dreamroute.sqlprinter.starter.anno;
import org.springframework.context.annotation.Import;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author w.dehai
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(SQLPrinterConfig.class)
public @interface EnableSQLPrinter {
/**
* SQL打印时候的值转换工具,比如属性值是Date类型,而在sql中希望展示成yyyy-MM-dd HH:mm:ss类型,那么就把转换工具配置在此
*/
Class extends ValueConverter>[] converters() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy