after upgrade springboot to 3.0.9, @Query(value = "SELECT * from table a where a.leader_name LIKE CONCAT('%', :#{#criteria.getName()}, '%') ", nativeQuery = true)
Page find(Pageable pageRequest, @Param("criteria") SearchRequest criteria)
has error : com.microsoft.sqlserver.jdbc.SQLServerException: The type for parameter '@P0' cannot be deduced in this context.
Through debugging, it was found that there was an issue with object passing parameters, we also try :#{#criteria.name}, '%')
has same error,
May I ask what is the reason for this how to solve,
Comment From: snicoll
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.