package com.iwbnet.iot.mapper; import com.iwbnet.iot.entity.User; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; @Mapper public interface UserMapper { @Select("select * from t_user where username = #{username}") public User selectUserByUsername(String username); }