1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.yanzuoguang.db;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* 打印SQL日志
*
* @author 颜佐光
*/
@Component
public class ConfigDb {
/**
* 打印映射日志
*/
@Value("${yzg.PrintMapper:false}")
private boolean printMapper;
/**
* 打印SQL日志
*/
@Value("${yzg.PrintSql:false}")
private boolean printSql;
/**
* 判断是否匹配过滤
*/
@Value("${yzg.PrintSqlFilter:}")
private String printSqlFilter;
@Value("${yzg.row.name.type:0}")
private int rowNameType;
public boolean isPrintMapper() {
return printMapper;
}
public boolean isPrintSql() {
return printSql;
}
public String getPrintSqlFilter() {
return printSqlFilter;
}
public int getRowNameType() {
return rowNameType;
}
}