whycxzp
2022-10-26 2f5c408bcdcf0cec9ce2baffc5d690e1ae819ed9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.whyc.service;
 
import com.whyc.mapper.DataBaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service
public class DataBaseService {
    @Autowired(required = false)
    private DataBaseMapper mapper;
 
    public void createTestData(){
        mapper.createTestData();
        mapper.insertTestData();
    }
}