JavaBean is moving forward to mybatis.

there is a project that uses mybatis, to perform login verification in the login.java class, which requires matching the user name of the database. Do you want to get SqlSessionFactory, according to the global configuration file in login.java and then use the sqlSession factory to get the sqlSession object and use it to execute the query? If so, wouldn"t it be too troublesome for every class with database interaction to take this step?

Mar.21,2021
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-1b3c10c-2b648.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-1b3c10c-2b648.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?