Mapper:
@MapperScan
public interface CentralMapper {
String get(@Param("name") String name);
}
Sql:
1:#{xxx}
select name from Service where name like #{name}
2:${xxx}
select name from Service where name like '%${name}%'
Mapper:
@MapperScan
public interface CentralMapper {
String get(@Param("name") String name);
}
Sql:
1:#{xxx}
select name from Service where name like #{name}
2:${xxx}
select name from Service where name like '%${name}%'