66676869707172
private UserRepository userRepository; @Before public void openSession() { Session session = sessionFactory.openSession(); TransactionSynchronizationManager.bindResource( sessionFactory, new SessionHolder( session ) ); }