springboot的web项目部署[2]_前后端整合部署
vite.config.ts
build: { //build编译后存放静态文件的目录 outDir: "../renren-admin/src/main/resources/static",ShiroConfig.java
filterMap.put("/**/*.html", "anon");
filterMap.put("/**/*.js", "anon");
filterMap.put("/**/*.css", "anon");
filterMap.put("/**/*.jpg", "anon");
filterMap.put("/**/*.png", "anon");
filterMap.put("/**/*.gif", "anon");
filterMap.put("/**/fonts/**", "anon");
filterMap.put("/", "anon");
filterMap.put("/**", "oauth2");
shiroFilter.setFilterChainDefinitionMap(filterMap);
return shiroFilter;
}
application.yml
spring:
# 环境 dev|test|prod
profiles:
active: dev
web:
resources:
static-locations: classpath:/static/
标签:web,springboot,部署,anon,put,filterMap From: https://www.cnblogs.com/yebinghuai/p/18017131