查了一下相关资料,整理如下: 原因:Hibernate4 No Session found for current thread原因 解决方法: 1. 在spring 配置文件中加入 程序代码 <tx:annotation-driven transaction-manager="transactionManager"/> 并且在处理业务逻辑的类上采用注解 程序代码 @Service public class CustomerServiceImpl implements
---恢复内容开始--- 1 /* 2 * Copyright 2002-2014 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of t