解决SQL Error: 0, SQLState: S1009
2020-10-30 08:16:18.170 ERROR 6236 — [io-8082-exec-10] o.h.engine.jdbc.spi.SqlExceptionHelper : Can not issue data manipulation statements with executeQuery().
问题
方法是这样的
@Modifying倒错包
import org.springframework.data.jpa.repository.JpaRepository;