You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
520 B

package com.example.mapper;
import com.example.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface UserMapper {
@Select("select * from user")
public List<User> list();
@Insert("insert into user(username,name,image,gender, entryTime, updateTime) values (#{username},#{name},#{image},#{gender},#{entryTime},#{updateTime})")
public void addUser(User user);
}