Skip to content

Commit 44ef284

Browse files
@initial MysqlDAO
1 parent b047607 commit 44ef284

126 files changed

Lines changed: 286 additions & 583 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
package com.talex.talexframe.frame;
22

3-
import com.talex.talexframe.frame.core.modules.mysql.MysqlManager;
4-
import com.talex.talexframe.frame.core.talex.TFrame;
53
import org.springframework.boot.SpringApplication;
64
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.cache.annotation.EnableCaching;
76
import org.springframework.context.ConfigurableApplicationContext;
8-
import org.springframework.scheduling.annotation.Scheduled;
7+
import org.springframework.scheduling.annotation.EnableAsync;
8+
import org.springframework.scheduling.annotation.EnableScheduling;
99

1010
/**
1111
* @author TalexDreamSoul
1212
*/
1313
@SpringBootApplication
14+
@EnableAsync
15+
@EnableScheduling
16+
@EnableCaching
1417
public class TalexFrameApplication {
1518

1619
public static final long startedTimeStamp = System.nanoTime();
@@ -22,18 +25,4 @@ public static void start(String[] args) {
2225

2326
}
2427

25-
/** 每十五分钟从 TFrame 获取一次mysql实例 执行 checkStatus 查询状态 如果前面获取的内容为null则不执行 **/
26-
@Scheduled( cron = "0 0/15 0/1 * * ?")
27-
public void mysqlChecker() {
28-
29-
TFrame tframe = TFrame.tframe;
30-
31-
MysqlManager mysql = tframe.getMysqlManager();
32-
33-
if( mysql == null ) return;
34-
35-
mysql.checkStatus();
36-
37-
}
38-
3928
}

src/main/java/com/talex/talexframe/frame/config/ConnectorConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/**
1616
* SSL (HTTP & HTTPS)
17-
* <br /> {@link com.talex.frame.talexframe.config Package }
17+
* <br /> {@link com.talex.talexframe.frame.config Package }
1818
*
1919
* @author TalexDreamSoul
2020
* @date 2022/1/24 16:48 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/config/ElasticConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.springframework.context.annotation.Configuration;
66

77
/**
8-
* <br /> {@link com.talex.frame.talexframe.config Package }
8+
* <br /> {@link com.talex.talexframe.frame.config Package }
99
*
1010
* @author TalexDreamSoul
1111
* @date 2022/1/29 1:05 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/config/MysqlConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.springframework.context.annotation.Configuration;
77

88
/**
9-
* <br /> {@link com.talex.frame.talexframe.config Package }
9+
* <br /> {@link com.talex.talexframe.frame.config Package }
1010
*
1111
* @author TalexDreamSoul
1212
* @date 2022/1/21 15:48 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/config/RedisConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Redis 容器注入
5-
* <br /> {@link com.talex.frame.talexframe.config Package }
5+
* <br /> {@link com.talex.talexframe.frame.config Package }
66
*
77
* @author TalexDreamSoul
88
* @date 2022/1/15 23:18 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/config/WebConfig.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package com.talex.talexframe.frame.config;
22

3-
import com.talex.talexframe.frame.interceptor.TimeConsumingInterceptor;
4-
import com.talex.talexframe.frame.interceptor.request.RequestInterceptor;
3+
import com.talex.talexframe.frame.core.modules.network.interceptor.TimeConsumingInterceptor;
54
import org.springframework.context.annotation.Configuration;
65
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
76
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
87

98
/**
10-
* <br /> {@link com.talex.frame.talexframe.config Package }
9+
* <br /> {@link com.talex.talexframe.frame.config Package }
1110
*
1211
* @author TalexDreamSoul
1312
* @date 2022/1/16 11:07 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/config/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* TalexFrame # 自定义配置
3-
* <br /> {@link com.talex.frame.talexframe.config Package }
3+
* <br /> {@link com.talex.talexframe.frame.config Package }
44
*
55
* @author TalexDreamSoul
66
* @date 2022/1/15 23:18 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/core/function/command/BaseCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package com.talex.talexframe.frame.core.function.command;
22

3+
import com.talex.talexframe.frame.core.pojo.mapper.frame.FrameSender;
34
import com.talex.talexframe.frame.core.talex.FrameCreator;
45
import com.talex.talexframe.frame.core.talex.TFrame;
5-
import com.talex.talexframe.frame.core.pojo.mapper.frame.FrameSender;
66
import lombok.Getter;
77

88
/**
9-
* <br /> {@link com.talex.frame.talexframe.function.command Package }
9+
* <br /> {@link com.talex.talexframe.frame.function.command Package }
1010
*
1111
* @author TalexDreamSoul
1212
* @date 2022/1/20 10:56 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/core/function/command/CommandManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import cn.hutool.core.util.StrUtil;
44
import com.talex.talexframe.frame.core.pojo.annotations.TalexCommand;
5-
import com.talex.talexframe.frame.core.talex.TFrame;
65
import com.talex.talexframe.frame.core.pojo.wrapper.WrappedSender;
6+
import com.talex.talexframe.frame.core.talex.TFrame;
77
import lombok.Getter;
88
import lombok.SneakyThrows;
99

@@ -14,7 +14,7 @@
1414

1515
/**
1616
* 命令管理器
17-
* <br /> {@link com.talex.frame.talexframe.function.command Package }
17+
* <br /> {@link com.talex.talexframe.frame.function.command Package }
1818
*
1919
* @author TalexDreamSoul
2020
* @date 2022/1/19 23:26 <br /> Project: TalexFrame <br />

src/main/java/com/talex/talexframe/frame/core/function/command/CommandReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package com.talex.talexframe.frame.core.function.command;
22

3-
import com.talex.talexframe.frame.core.talex.TFrame;
4-
import com.talex.talexframe.frame.core.pojo.mapper.frame.FrameSender;
53
import com.talex.talexframe.frame.core.pojo.enums.FrameStatus;
4+
import com.talex.talexframe.frame.core.pojo.mapper.frame.FrameSender;
5+
import com.talex.talexframe.frame.core.talex.TFrame;
66
import lombok.extern.slf4j.Slf4j;
77
import net.minecrell.terminalconsole.SimpleTerminalConsole;
88
import org.jline.reader.LineReader;
99
import org.jline.reader.LineReaderBuilder;
1010

1111
/**
12-
* <br /> {@link com.talex.frame.talexframe.function.command Package }
12+
* <br /> {@link com.talex.talexframe.frame.function.command Package }
1313
*
1414
* @author TalexDreamSoul
1515
* @date 2022/1/19 20:43 <br /> Project: TalexFrame <br />

0 commit comments

Comments
 (0)