Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String myWSMethod() throws FileNotFoundException , IOException {
- SqlSessionFactory sqlSessionFactory = null;
- String resource = "ibatis-config.xml";
- Reader reader = Resources.getResourceAsReader(resource);
- if (sqlSessionFactory == null) {
- sqlSessionFactory = new SqlSessionFactoryBuilder()
- .build(reader);
- }
- SqlSession session = sqlSessionFactory.openSession();
- OneMapper miQuery = session
- .getMapper(OneMapper.class);
- miQuery.miMetodo("aaaB);
- return "OKEY";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement