最近要改造一下项目,报出 No Session found for current thread最近要改造一下项目,自动扫描注册service和dao,自动注入dao、service;但遇到No Session found for current thread 的问题,配置如下:public class Hibernate
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/29 11:25:26
![最近要改造一下项目,报出 No Session found for current thread最近要改造一下项目,自动扫描注册service和dao,自动注入dao、service;但遇到No Session found for current thread 的问题,配置如下:public class Hibernate](/uploads/image/z/8359377-33-7.jpg?t=%E6%9C%80%E8%BF%91%E8%A6%81%E6%94%B9%E9%80%A0%E4%B8%80%E4%B8%8B%E9%A1%B9%E7%9B%AE%2C%E6%8A%A5%E5%87%BA+No+Session+found+for+current+thread%E6%9C%80%E8%BF%91%E8%A6%81%E6%94%B9%E9%80%A0%E4%B8%80%E4%B8%8B%E9%A1%B9%E7%9B%AE%2C%E8%87%AA%E5%8A%A8%E6%89%AB%E6%8F%8F%E6%B3%A8%E5%86%8Cservice%E5%92%8Cdao%2C%E8%87%AA%E5%8A%A8%E6%B3%A8%E5%85%A5dao%E3%80%81service%EF%BC%9B%E4%BD%86%E9%81%87%E5%88%B0No+Session+found+for+current+thread+%E7%9A%84%E9%97%AE%E9%A2%98%2C%E9%85%8D%E7%BD%AE%E5%A6%82%E4%B8%8B%EF%BC%9Apublic+class+Hibernate)
xUkoA~+ Yj_bgbeXFP0
j_XXJ4)J?݁_p6&d؝sܙ)#$dqebL+w+k[nГ{̘̌UĄ#b(B@#B&?