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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-3457254-1cb8f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-3457254-1cb8f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?