spring boot 参数传递

spring boot 参数传数 arg0 每一个参数 arg0#{arg0},arg1  #{arg1}

@Select("select * from sys_user where name=#{arg0} and pass=#{arg1}")

public List<Map<String,Object>> getAllUser(String username,String password);

大于三个参数据,用传递对象

/**
* Spring 启动
* @Description:方法说明:
* @date: 2018年9月23日上午10:39:56
* @param args
*/
public static void main(String[] args) {
SpringApplication.run(FrontController.class, args);
}

猜你喜欢

转载自www.cnblogs.com/gzhbk/p/9692598.html