美文网首页
java-service

java-service

作者: xueyueshuai | 来源:发表于2022-05-14 17:12 被阅读0次
    package com.example.demo.service;
    
    import com.example.demo.entity.User;
    import com.example.demo.mapper.UserMapper;
    import org.springframework.stereotype.Service;
    
    import javax.annotation.Resource;
    import java.util.List;
    
    @Service
    public class UserService {
        @Resource
        UserMapper userMapper;
    
        public List<User> getUser() {
            return userMapper.getUser();
        }
    }
    
    

    相关文章

      网友评论

          本文标题:java-service

          本文链接:https://www.haomeiwen.com/subject/aumzyrtx.html