[mybatis] Parameter not found. Available parameters are [arg1, arg0, param1, par
2022. 2. 4. 16:58ㆍspring
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SugBizMapper {
int updateExchangeSeq(@Param("sugSno") String sugSno, @Param("exchangeSeq") int exchangeSeq);
}
@Param을 했음에도 오류가 났다.
한참 해매다보니
@import org.springframework.data.repository.query.Param;로 되어 있었다.
[as-is] @import org.springframework.data.repository.query.Param
[to-be] @import org.apache.ibatis.annotations.Param;
'spring' 카테고리의 다른 글
단계별 session (0) | 2022.02.15 |
---|---|
sftp (0) | 2022.02.10 |
httpSecurity.csrf().disable() (0) | 2022.01.15 |
[Thymeleaf] template might not exist or might not be accessible by any of the co (0) | 2022.01.11 |
@Value로 application.yml의 값 가져오기 (0) | 2022.01.09 |