@Component
public class CurrentUserInfo {
@Autowired
private UserownerMapper userownerMapper;
private static CurrentUserInfo currentUserInfo;
@PostConstruct
public void init(){
currentUserInfo = this;
currentUserInfo.userownerMapper = this.userownerMapper;
}
}
static方法使用mapper
最新推荐文章于 2024-07-23 04:09:24 发布