博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
泛型 T的定义<1>
阅读量:4951 次
发布时间:2019-06-12

本文共 573 字,大约阅读时间需要 1 分钟。

public 
T getMapper(Class
type, SqlSession sqlSession) {
MapperProxyFactory mapperProxyFactory = (MapperProxyFactory)this.knownMappers.get(type); if(mapperProxyFactory == null) {
throw new BindingException("Type " + type + " is not known to the MapperRegistry."); } else {
try {
return mapperProxyFactory.newInstance(sqlSession); } catch (Exception var5) {
throw new BindingException("Error getting mapper instance. Cause: " + var5, var5); } } }

转载于:https://www.cnblogs.com/guoyongqiang/p/7218337.html

你可能感兴趣的文章