SqlSession was not registered.

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@79669d23] was not registered for synchronization because synchronization is not active
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@26369c1d]

springboot startup class:

@SpringBootApplication
@EnableScheduling //
@EnableTransactionManagement//
@MapperScan("com.qtay.gls.dao")//dao@Mapper()
public class Application {}
Mar.03,2021

check to see if @ Mapper annotation has been added to the interface under your mapper and whether @ Service, has been added to the implementation class under XXService. Are these two causes of transaction startup failure solved


? Ask the same question

Menu