spring boot mapper层传参数是用main的arg0(第一个参数),arg1(第二个参数) 大于三个参数,用map传递 public interface FrontMapper{ //============== //spring boot mapper 传参@Select("select count(1) as num from users where username=#{arg0} and password=#{arg1}")int isUserExist(Stri
Spring中ClassPathXmlApplication与FileSystemXmlApplicationContext的区别 一.概述 在项目中遇到加载不到Spring配置文件,简单分析后,写此文备忘! 二.测试所需资源 TestBean.java public class TestBean { public TestBean(){ System.out.println(this.getClass().getName().concat(" init !")); } public