package(stringBuffer.toString());
    }
}

@@ -1,15 +1,2981 @@
 package
+ net.eulerframework.web.core.extend;%0A%0Aimport java.io.IOException;%0Aimport java.util.Arrays;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport org.mybatis.spring.SqlSessionFactoryBean;%0Aimport org.springframework.core.io.Resource;%0Aimport org.springframework.core.io.support.PathMatchingResourcePatternResolver;%0Aimport org.springframework.core.io.support.ResourcePatternResolver;%0Aimport org.springframework.util.Assert;%0Aimport org.springframework.util.StringUtils;%0A%0A/**%0A * %E6%94%AF%E6%8C%81%E4%BD%BF%E7%94%A8%E9%80%9A%E9%85%8D%E7%AC%A6%E6%89%AB%E6%8F%8FAliasesPackage%E7%9A%84SqlSessionFactoryBean%0A * @author cFrost%0A *%0A */%0Apublic class AliasesPackageMatchingSqlSessionFactoryBean extends SqlSessionFactoryBean %7B%0A    %0A    private final static String JAR = %22jar!%22;%0A%0A    /**%0A     * %E8%AE%BE%E7%BD%AEAliasesPackage%E6%89%AB%E6%8F%8F%E5%8C%85%EF%BC%8C%E5%8F%AF%E8%AE%BE%E7%BD%AE%E5%A4%9A%E4%B8%AA%EF%BC%8C%E6%94%AF%E6%8C%81%E9%80%9A%E9%85%8D%E7%AC%A6%0A     * @param typeAliasesPackages eg. net.**.web.**.entity or net.demo.web.entity%0A     */%0A    public void setTypeAliasesPackages(String%5B%5D typeAliasesPackages) %7B%0A        Assert.notEmpty(typeAliasesPackages, %22typeAliasesPackages can not be empty%22);%0A        %0A        ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();%0A        %0A        Set%3CResource%3E typeAliasesPackageResources = new HashSet%3C%3E();%0A        for(String typeAliasesPackage : typeAliasesPackages) %7B%0A            String locationPattern = %22classpath*:%22 + typeAliasesPackage.trim().replace(%22.%22, %22/%22);%0A%0A            try %7B%0A                typeAliasesPackageResources.addAll(Arrays.asList(resolver.getResources(locationPattern)));%0A            %7D catch (IOException e) %7B%0A                throw new RuntimeException(e);%0A            %7D%0A        %7D%0A        %0A        Set%3CString%3E resourcePath = new HashSet%3C%3E();%0A        String classPath = this.getClass().getResource(%22/%22).toString();%0A        %0A        for(Resource resource : typeAliasesPackageResources) %7B%0A            if (!StringUtils.hasText(resource.getDescription())) %7B%0A                continue;%0A            %7D%0A            %0A            try %7B%0A                String uri = resource.getURI().toString();%0A                String path = uri.substring(classPath.length() - 1);%0A                %0A                if(path.indexOf(JAR) %3E -1) %7B%0A                    path = path.substring(path.indexOf(JAR) + JAR.length());%0A                %7D%0A                %0A                while (path.startsWith(%22/%22)) %7B%0A                    path = path.substring(1);%0A                %7D%0A                %0A                if (!StringUtils.hasText(path)) %7B%0A                    continue;%0A                %7D%0A                %0A                resourcePath.add(path);%0A            %7D catch (IOException e) %7B%0A                throw new RuntimeException(e);%0A            %7D%0A        %7D%0A        %0A        StringBuffer stringBuffer = new StringBuffer();%0A        %0A        for(String each : resourcePath) %7B%0A            while (each.endsWith(%22/%22)) %7B%0A                each = each.substring(0, each.length() - 1);%0A            %7D%0A            each= each.replace('/', '.');%0A            stringBuffer.append(each).append(',');%0A        %7D%0A        %0A        super.setTypeAliasesPackage
 (stringB

fix error delete