package com.sf.mapper.impl;


import com.sf.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * @author WanJl
 * @version 1.0
 * @title UserMapperImpl
 * @description
 * @create 2025/11/30
 */
@Repository("userMapper")
public class UserMapperImpl implements UserMapper {
    //@Value注解是用来做简单类型注入，不需要通过set方法
    @Value("${name}")
    private String name;
    @Value("${age}")
    private int age;

    @Override
    public void print() {
        System.out.println("userMapperImpl"+name+age);
    }
}
