Skip to content

Commit

Permalink
v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kloping committed Jun 9, 2022
1 parent fbac00c commit 523c564
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
<dependency>
<groupId>io.github.Kloping</groupId>
<artifactId>spt-web</artifactId>
<version>0.1.6</version>
<version>0.1.9</version>
</dependency>
<dependency>
<groupId>io.github.Kloping</groupId>
<artifactId>SpringTool</artifactId>
<version>0.5.2</version>
<version>0.5.3</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/kloping/Plugin0AutoReply.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Plugin0AutoReply extends JavaPlugin {
public static final Plugin0AutoReply INSTANCE = new Plugin0AutoReply();

private Plugin0AutoReply() {
super(new JvmPluginDescriptionBuilder("com.hrs.kloping.AutoReply", "0.5.1")
super(new JvmPluginDescriptionBuilder("com.hrs.kloping.AutoReply", "0.5.2")
.name("Custom Reply")
.info("Custom Reply")
.author("HRS")
Expand Down
16 changes: 11 additions & 5 deletions src/main/java/com/github/kloping/sp/Starter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import com.github.kloping.Plugin0AutoReply;
import com.github.kloping.Resource;
import io.github.kloping.MySpringTool.StarterApplication;
import io.github.kloping.MySpringTool.StarterObjectApplication;
import io.github.kloping.MySpringTool.annotations.CommentScan;
import io.github.kloping.little_web.WebExtension;
import io.github.kloping.little_web.conf.TomcatConfig;

import static com.github.kloping.Resource.uuid;
Expand All @@ -16,9 +15,16 @@
public class Starter {
public static void main(String[] args) {
try {
TomcatConfig.DEFAULT.setPort(Resource.conf.getPort());
StarterApplication.SCAN_LOADER = Plugin0AutoReply.class.getClassLoader();
StarterApplication.run(Starter.class);
TomcatConfig config = new TomcatConfig();
config.setPort(Resource.conf.getPort());
config.setName("autoReply-web");
StarterObjectApplication application = new StarterObjectApplication();
application.PRE_SCAN_RUNNABLE.add(() -> {
application.INSTANCE.getContextManager().append(config);
application.INSTANCE.getContextManager().append("autoReply-servlet0", "servletName");
});
application.SCAN_LOADER = Plugin0AutoReply.class.getClassLoader();
application.run0(Starter.class);
Plugin0AutoReply.INSTANCE.getLogger().info("AutoReply 服务启动成功 address: http://localhost:" + Resource.conf.getPort() + "?key=" + uuid);
} catch (Throwable e) {
System.err.println("AutoReply服务启动异常(请检查端口是否被占用)");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h5 v-text="data.name" class="mt-0"></h5>
</div>
</div>
<center>
<h1 style="color: aliceblue">作者QQ: 3474006766</h1> <br>
<h1 style="color: aliceblue">插件交流群 794238572</h1> <br>
<h5 style="color: aliceblue">遇到bug请及时反馈</h5>
<h5 style="color: aliceblue">单击选择要修改的对象</h5>
</center>
Expand Down

0 comments on commit 523c564

Please sign in to comment.