首页>代码>springboot+thymeleaf+bootstrap实现网站用户登陆以及注册校验的简单实例>/exple/src/main/java/com/sxy/sbs/service/UserService.java
package com.sxy.sbs.service; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; import com.sxy.sbs.domian.User; @Repository public interface UserService { @Select("select name,password from user where name = #{name}") public User getUser(@Param("name") String name); @Insert("insert into user(name,password) values(#{name},#{password})") public void saveUser(@Param("name")String name,@Param("password")String password); }

尹恒yingying LV18
2021年10月23日
lincong111 LV1
2021年7月12日
773977962 LV9
2021年1月12日
wyawa123 LV1
2020年11月4日
huangxiaoke20 LV17
2020年10月23日
zengshuang LV3
2020年4月14日
flgh9217 LV1
2020年3月29日
hanshuquan萤草 LV1
2020年3月24日
zhouhxu LV7
2020年3月23日
bailihui LV4
2020年3月9日