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

Commit

Permalink
修复相关token修改,添加,刷新的bug ,新增跳转PandoraNext的设置页和主页的功能
Browse files Browse the repository at this point in the history
页面优化,更加直观
  • Loading branch information
Yanyutin753 committed Dec 21, 2023
1 parent 4bae716 commit ec725d0
Show file tree
Hide file tree
Showing 77 changed files with 380 additions and 586 deletions.
16 changes: 8 additions & 8 deletions rearServer/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down Expand Up @@ -37,7 +37,7 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- json-->
<!-- json-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
Expand Down Expand Up @@ -70,7 +70,7 @@
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
<!-- 检查docker容器-->
<!-- 检查docker容器-->
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
Expand All @@ -83,11 +83,11 @@
</dependency>

<!-- 加密-->
<!-- <dependency>-->
<!-- <groupId>org.mindrot</groupId>-->
<!-- <artifactId>jbcrypt</artifactId>-->
<!-- <version>0.4</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.mindrot</groupId>-->
<!-- <artifactId>jbcrypt</artifactId>-->
<!-- <version>0.4</version>-->
<!-- </dependency>-->

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,30 @@ public class LogAspect {
* @拿到controller里的reload()方法
*/
private apiController controller;

@Autowired
public void setController(apiController controller) {
this.controller = controller;
}

/**
* @是否开启热重载
*/
@Value("${hotReload}")
private String hotReload;

@Autowired
public void setController(apiController controller) {
this.controller = controller;
}

/**
* @在方法之后执行reload
*/
@After("@annotation(com.tokensTool.pandoraNext.anno.Log)")
public void recordLog(){
if(Boolean.parseBoolean(hotReload)){
public void recordLog() {
if (Boolean.parseBoolean(hotReload)) {
try {
log.info(controller.reloadContainer().toString());
} catch (Exception e) {
e.printStackTrace();
log.info("热重载失败!");
}
}
else{
} else {
log.info("热重载未开启!");
}
}
Expand Down
Loading

0 comments on commit ec725d0

Please sign in to comment.