소스 검색

修改提示

Caratacus 8 년 전
부모
커밋
0dbc6af07a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mybatis-plus/src/main/java/com/baomidou/mybatisplus/MybatisPulsMapperRegistry.java

+ 2 - 2
mybatis-plus/src/main/java/com/baomidou/mybatisplus/MybatisPulsMapperRegistry.java

@@ -51,7 +51,7 @@ public class MybatisPulsMapperRegistry extends MapperRegistry {
 	public <T> T getMapper(Class<T> type, SqlSession sqlSession) {
 	public <T> T getMapper(Class<T> type, SqlSession sqlSession) {
 		final MapperProxyFactory<T> mapperProxyFactory = (MapperProxyFactory<T>) knownMappers.get(type);
 		final MapperProxyFactory<T> mapperProxyFactory = (MapperProxyFactory<T>) knownMappers.get(type);
 		if (mapperProxyFactory == null) {
 		if (mapperProxyFactory == null) {
-			throw new BindingException("Type " + type + " is not known to the MapperRegistry.");
+			throw new BindingException("Type " + type + " is not known to the MybatisPlusMapperRegistry.");
 		}
 		}
 		try {
 		try {
 			return mapperProxyFactory.newInstance(sqlSession);
 			return mapperProxyFactory.newInstance(sqlSession);
@@ -67,7 +67,7 @@ public class MybatisPulsMapperRegistry extends MapperRegistry {
 	public <T> void addMapper(Class<T> type) {
 	public <T> void addMapper(Class<T> type) {
 		if (type.isInterface()) {
 		if (type.isInterface()) {
 			if (hasMapper(type)) {
 			if (hasMapper(type)) {
-				throw new BindingException("Type " + type + " is already known to the MapperRegistry.");
+				throw new BindingException("Type " + type + " is already known to the MybatisPlusMapperRegistry.");
 			}
 			}
 			boolean loadCompleted = false;
 			boolean loadCompleted = false;
 			try {
 			try {