Skip to content

Commit

Permalink
✨抑制Spring自动注入警告
Browse files Browse the repository at this point in the history
  • Loading branch information
lishangbu committed Feb 10, 2024
1 parent a3f6a06 commit 194f975
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
-X
-T1C
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
public class StudentService {

@Autowired
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
private StudentMapper studentMapper;

public List<Student> listStudent() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
public class RedisIdempotentKeyStore implements IdempotentKeyStore {

@Autowired
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
private StringRedisTemplate stringRedisTemplate;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class ExtendServiceImpl<M extends ExtendMapper<T>, T> implements ExtendSe
protected Log log = LogFactory.getLog(getClass());

@Autowired
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
protected M baseMapper;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
public abstract class AbstractMessageEventListener<T> implements MessageEventListener {

@Autowired
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
protected StringRedisTemplate stringRedisTemplate;

protected final Class<T> clz;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
public abstract class AbstractRedisThread<E> extends AbstractQueueThread<E> {

@Autowired
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
protected RedisHelper redisHelper;

/**
Expand Down

0 comments on commit 194f975

Please sign in to comment.