sql injection violation, comment not allow, mybatis,mysql,诡异的错误. sql语句可以执行,但是用mybatis操作就报错.

版权声明:本文为博主原创文章,未经博主允许不得转载。谢谢配合!!! https://blog.csdn.net/masuwen/article/details/81004323
//读取数据库配置
		loadPropertyFile("classes/config/mysql.properties");
		DruidPlugin dp = new DruidPlugin(getProperty("jdbcUrl"),getProperty("user"),getProperty("password"));

		//WallFilter wall = new WallFilter();
		//wall.setDbType(getProperty("dbType"));
		//dp.addFilter(wall);

最简单粗暴的方式就是将配置的wall去掉。 问题搞定!


猜你喜欢

转载自blog.csdn.net/masuwen/article/details/81004323