#java #Hibernate #spring #springMVC #ssm #mybatis #设置Tag是个好习惯 springspringMVCmybatis,hibernate...
#Hibernate #java #设置Tag是个好习惯 openSession()和getCurrentSession()的区别:1.openSession() 是获取一个新的session2.getCurrentSession() 获取的是当前线程绑定的session,换言之获取到的是同一个session,有利于事务控制。要用getCurrentSe...
#Hibernate #设置Tag是个好习惯 今天用工具生成数据库映射文件,然后用application的main函数调试的时候报了javax.naming.NoInitialContextException异常:异常具体内容是:Need to specify class name in environment or system prope...