摘要: //一次插入多条数据时: 1, for(User u :list){ INSERT into user(name,age) values(#name#,#age#) //此效率极低 } 2, INSERT into User(name,age) values <foreach collection= 阅读全文
posted @ 2020-02-20 20:20 唯恐不及 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1,@SpringBootApplication 是springboot的核心注解,用在启动类上,是由 @Configuration 加载spring,配置spring并启动spring容器; 启动容器@Bean注册Bean; 启动容器+@Component注册Bean 等价于<Beans></Be 阅读全文
posted @ 2020-02-20 20:02 唯恐不及 阅读(324) 评论(0) 推荐(0) 编辑