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
Menu