mybatis
ljz1315
这个作者很懒,什么都没留下…
展开
-
mybatis xml中#与$的区别
Mybatis 的Mapper.xml语句中parameterType向SQL语句传参有两种方式:#{}和${} 我们经常使用的是#{},一般解说是因为这种方式可以防止SQL注入,简单的说#{}这种方式SQL语句是经过预编译的,它是把#{}中间的参数转义成字符串,举个例子: select * from student where student_name = #{name} 预编译后,会动态...转载 2018-12-06 14:14:08 · 664 阅读 · 0 评论 -
intellij Idea报错Could not autowire. No beans of...checks autowiring problems in a bean class
tellig idea 使用@Resource或者@Autowire报错,出现红色波浪线; 虽然不影响使用,但是看着很不爽,所以还是解决了下: 报错提示: Could not autowire. No beans of '' type found. less... (Ctrl+F1) Checks autowiring problems in a ...转载 2019-04-03 10:47:44 · 1918 阅读 · 0 评论