It comes from https://mybatis.org/mybatis-3/getting-started.html.
try (SqlSession session = sqlSessionFactory.openSession()) { // do work } when I copy the code into editior . I get an error
try with resources are not supported at language level 5
how comes the problem?
pom.xmlfile and auto-configured itself for development in Java 8.