|
|
@ -41,6 +41,8 @@ public class Token implements Serializable {
|
|
|
|
private Set<String> resSet = new HashSet<>();
|
|
|
|
private Set<String> resSet = new HashSet<>();
|
|
|
|
|
|
|
|
|
|
|
|
public boolean hasRes(String res) {
|
|
|
|
public boolean hasRes(String res) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{// todo 开发初期收集资源,后期删除
|
|
|
|
String[] profiles = LocalData.getEnvironment().getActiveProfiles();
|
|
|
|
String[] profiles = LocalData.getEnvironment().getActiveProfiles();
|
|
|
|
for (String profile : profiles) {
|
|
|
|
for (String profile : profiles) {
|
|
|
|
if (profile.contains("dev")) {//测试环境捕获资源
|
|
|
|
if (profile.contains("dev")) {//测试环境捕获资源
|
|
|
@ -61,6 +63,7 @@ public class Token implements Serializable {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (String s : resSet) {
|
|
|
|
for (String s : resSet) {
|
|
|
|
if (res.matches(s)) {
|
|
|
|
if (res.matches(s)) {
|
|
|
|