PHPz2017-04-18 10:57:22
Because the specific implementation method is implemented for you by mybatis. You can study it in depth
巴扎黑2017-04-18 10:57:22
@Autowired
?
@Autowired
You can annotate member variables, methods and constructors to complete automatic assembly.
To put it simply: Spring helps you find a class that implements this interface and instantiates the marked variable.
Because the variable is marked @Autowired
.