All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mars.mvc.resolve.access.PathAccess Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
package com.mars.mvc.resolve.access;

import java.util.HashMap;
import java.util.Map;

/**
 * 配置哪些url不处理
 */
public class PathAccess {

    private static Map urls;

    /**
     * 加载配置
     */
    private static void init(){
        if(urls == null){
            urls = new HashMap<>();
            urls.put("favicon.ico","no");
        }
    }

    /**
     * 判断是否处理
     * @param uri
     * @return
     */
    public static Boolean hasAccess(String uri){
        init();
        return urls.get(uri) != null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy