Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
PandoraNext-tokensTool v 0.6.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyutin753 committed Jan 5, 2024
1 parent 411f949 commit 7668545
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@

import com.tokensTool.pandoraNext.interceptor.LoginCheckInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {
@Value("${server.servlet.context-path}")
private String profix;

@Autowired
private LoginCheckInterceptor loginCheckInterceptor;

@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(loginCheckInterceptor).addPathPatterns(profix+"/api/**");
registry.addInterceptor(loginCheckInterceptor).addPathPatterns("/api/**");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ public class apiController {
* 重载接口
*/
private final static String reloadUrl = "/api/setup/reload";
/**
* 主机先前IP
*/
private static String previousIPAddress = "";

public String deploy = "default";

private systemService systemService;
Expand All @@ -47,8 +44,6 @@ public class apiController {
@Value("${deployWay}")
private String deployWay;

@Value("${pandoara_Ip}")
private String pandoara_Ip;

private static boolean isContainerStopped(DockerClient dockerClient, String containerIdOrName) {
try {
Expand Down
5 changes: 1 addition & 4 deletions rearServer/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ server.port=8081
deployWay=docker
# default Or your absolute filePath
deployPosition=default
# default Or your PandoraNext_Ip
pandoara_Ip="ip Or default"
# hotReload
hotReload=true
# copilot interface
copilot_interface=true

# SpringBoot 2.* prefix
server.servlet.context-path=
server.servlet.context-path=/



Expand Down
5 changes: 1 addition & 4 deletions rearServer/target/classes/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ server.port=8081
deployWay=docker
# default Or your absolute filePath
deployPosition=default
# default Or your PandoraNext_Ip
pandoara_Ip="ip Or default"
# hotReload
hotReload=true
# copilot interface
copilot_interface=true

# SpringBoot 2.* prefix
server.servlet.context-path=
server.servlet.context-path=/



Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified rearServer/target/pandoraNext-0.6.0-SNAPSHOT.jar
Binary file not shown.
Binary file modified simplyDeploy/pandoraNext-0.6.0-SNAPSHOT.jar
Binary file not shown.

0 comments on commit 7668545

Please sign in to comment.