Creating a new SqlSession
[org.apache.ibatis.session.defaults.DefaultSqlSession@4e872071] was not registered for synchronization because synchronization is not active
再写树形菜单时,因为要根据父级id查询两边,报了事务关闭的错误
controller层:
mapper层:
在mapper层中的方法参数前加上注解@Param("")即可



