0
点赞
收藏
分享

微信扫一扫

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

君心浅语 2022-09-02 阅读 91

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);
}

举报

相关推荐

java获取参数名为arg1底层原理

0 条评论