@@ -0,0 +1,2191 @@
+/*%0A * The MIT License (MIT)%0A *%0A * Copyright (c) 2017 abel533@gmail.com%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN%0A * THE SOFTWARE.%0A */%0A%0Apackage tk.mybatis.mapper.autoconfigure;%0A%0Aimport org.springframework.boot.context.properties.ConfigurationProperties;%0Aimport tk.mybatis.mapper.entity.Config;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * %E8%BF%99%E4%B8%AA%E7%B1%BB%E5%AD%98%E5%9C%A8%E7%9A%84%E4%B8%BB%E8%A6%81%E7%9B%AE%E7%9A%84%E6%98%AF%E6%96%B9%E4%BE%BF IDE %E8%87%AA%E5%8A%A8%E6%8F%90%E7%A4%BA mapper. %E5%BC%80%E5%A4%B4%E7%9A%84%E9%85%8D%E7%BD%AE%0A *%0A * @author liuzh%0A * @since 2017/1/2.%0A */%0A@ConfigurationProperties(prefix = %22mapper%22)%0Apublic class MapperProperties extends Config %7B%0A    private List%3CClass%3E mappers = new ArrayList%3CClass%3E();%0A%0A    public String getIdentity() %7B%0A        return getIDENTITY();%0A    %7D%0A%0A    public void setIdentity(String identity) %7B%0A        setIDENTITY(identity);%0A    %7D%0A%0A    public List%3CClass%3E getMappers() %7B%0A        return mappers;%0A    %7D%0A%0A    public void setMappers(List%3CClass%3E mappers) %7B%0A        this.mappers = mappers;%0A    %7D%0A%0A    public String getUuid() %7B%0A        return getUUID();%0A    %7D%0A%0A    public void setUuid(String uuid) %7B%0A        setUUID(uuid);%0A    %7D%0A%0A    public boolean isBefore() %7B%0A        return isBEFORE();%0A    %7D%0A%0A    public void setBefore(boolean before) %7B%0A        setBEFORE(before);%0A    %7D%0A%7D%0A

还原 MapperProperties.java，这个类存在的主要目的是方便 IDE 自动提示 mapper. 开头的配置