# 动态 SQL IF 语句 <!-- 动态 SQL--> <select id="queryBlogIF" parameterType="map" resultType="B"> select * from blog where 1=1 <!-- 如果 title 不为 null 则拼接以下语句 --> <if test="title != null"> and title = #{title}...
Spring @SuppressWarnings("all")@Configuration@ComponentScan({"com.dkx.spring.service"})@PropertySource("classpath:druid.properties")@Import({JdbcConfig.class,MybatisConfig.class})@EnableTransactionManagementpublic class SpringConfig...