This commit is contained in:
thinkgem
2018-12-15 19:54:19 +08:00
parent 466b323114
commit 2de5300ae5
3 changed files with 5 additions and 4 deletions

View File

@@ -340,7 +340,8 @@ public class LoginController extends BaseController{
if (!StringUtils.equals(principal.getParam("sysCode"), sysCode)){ if (!StringUtils.equals(principal.getParam("sysCode"), sysCode)){
principal.setParam("sysCode", sysCode); principal.setParam("sysCode", sysCode);
UserUtils.removeCacheByKeyPrefix(UserUtils.CACHE_MENU_LIST); UserUtils.removeCacheByKeyPrefix(UserUtils.CACHE_MENU_LIST);
UserUtils.removeCache(UserUtils.CACHE_AUTH_INFO); Session session = UserUtils.getSession();
UserUtils.removeCache(UserUtils.CACHE_AUTH_INFO+"_"+session.getId());
} }
} }
return REDIRECT + adminPath + "/index"; return REDIRECT + adminPath + "/index";

View File

@@ -93,7 +93,7 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<encoding>${project.build.sourceEncoding}</encoding> <!-- <encoding>${project.build.sourceEncoding}</encoding> -->
<archive> <archive>
<addMavenDescriptor>false</addMavenDescriptor> <addMavenDescriptor>false</addMavenDescriptor>
</archive> </archive>

View File

@@ -89,8 +89,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<configuration> <configuration>
<packagingExcludes></packagingExcludes> <!-- <packagingExcludes></packagingExcludes>
<warSourceExcludes></warSourceExcludes> <warSourceExcludes></warSourceExcludes> -->
<webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory> <webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory>
<warName>${finalName}</warName> <warName>${finalName}</warName>
<archive> <archive>