场景
想要不论传入什么sql 都能直接执行
示例
@Autowiredprivate SqlSessionTemplate sqlSessionTemplate;public void executeSql(String replaceSql) {if (StringUtils.isEmpty(replaceSql)) {return;}try {SqlSession sqlSession = sqlSessionTemplate.getSqlSessionFactory().openSession();sqlSession.getConnection().prepareStatement(replaceSql).execute(replaceSql);sqlSession.commit();sqlSession.close();} catch (SQLException e) {log.error("异常:" ,e);}}