Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
tomcat-back-java
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
FCE
kytcce-poc
tomcat-back-java
Commits
6452d51b
提交
6452d51b
authored
9月 17, 2021
作者:
guilai.ming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initial commit
上级
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
147 行增加
和
0 行删除
+147
-0
pom.xml
pom.xml
+52
-0
DemoApplication.java
src/main/java/com/notemap/demo/DemoApplication.java
+27
-0
DemoController.java
...main/java/com/notemap/demo/controller/DemoController.java
+54
-0
application.properties
src/main/resources/application.properties
+1
-0
logback-spring.xml
src/main/resources/logback-spring.xml
+0
-0
DemoApplicationTests.java
src/test/java/com/notemap/demo/DemoApplicationTests.java
+13
-0
没有找到文件。
pom.xml
0 → 100644
浏览文件 @
6452d51b
<?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"
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>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.4.5
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>
com.notemap
</groupId>
<artifactId>
hip-management
</artifactId>
<version>
0.1
</version>
<name>
hip-management
</name>
<description>
Demo project for Spring Boot
</description>
<properties>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<scope>
runtime
</scope>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.18.20
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
src/main/java/com/notemap/demo/DemoApplication.java
0 → 100644
浏览文件 @
6452d51b
package
com
.
notemap
.
demo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
java.util.Date
;
import
java.util.Timer
;
import
java.util.TimerTask
;
@SpringBootApplication
@Slf4j
public
class
DemoApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DemoApplication
.
class
,
args
);
TimerTask
timerTask
=
new
TimerTask
()
{
@Override
public
void
run
()
{
log
.
info
(
"Run timerTask:"
+
new
Date
());
}
};
Timer
timer
=
new
Timer
();
timer
.
schedule
(
timerTask
,
1000
,
3000
);
}
}
src/main/java/com/notemap/demo/controller/DemoController.java
0 → 100644
浏览文件 @
6452d51b
package
com
.
notemap
.
demo
.
controller
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Date
;
import
java.util.Timer
;
import
java.util.TimerTask
;
/**
* @author wz
* @date 2021-05-13 13:41
*/
@RestController
@RequestMapping
(
"api/v1/ruby"
)
@Slf4j
public
class
DemoController
{
@GetMapping
(
"/user"
)
public
String
testUser
(){
String
[]
args
=
new
String
[
0
];
main
(
args
);
return
"success"
;
}
// public static void main(String[] args) {
// TimerTask timerTask = new TimerTask() {
// @Override
// public void run() {
// log.info("Run timerTask:" + new Date());
// }
// };
// Timer timer = new Timer();
// timer.schedule(timerTask, 1000, 3000);
// }
public
static
void
main
(
String
[]
args
)
{
// Byte aByte=new Byte("[123, 34, 107, 105, 110, 100, 34, 58, 34, 83, 116, 97, 116, 117, 115, 34, 44, 34, 97, 112, 105, 86, 101, 114, 115, 105, 111, 110, 34, 58, 34, 118, 49, 34, 44, 34, 109, 101, 116, 97, 100, 97, 116, 97, 34, 58, 123, 125, 44, 34, 115, 116, 97, 116, 117, 115, 34, 58, 34, 70, 97, 105, 108, 117, 114, 101, 34, 44, 34, 109, 101, 115, 115, 97, 103, 101, 34, 58, 34, 112, 111, 100, 115, 32, 92, 34, 100, 112, 99, 115, 49, 50, 51, 45, 51, 92, 34, 32, 110, 111]");
// byte b = aByte.byteValue();
// System.out.println(aByte.toString());
byte
[]
bytes
=
new
byte
[]
{
123
,
34
,
107
,
105
,
110
,
100
,
34
,
58
,
34
,
83
,
116
,
97
,
116
,
117
,
115
,
34
,
44
,
34
,
97
,
112
,
105
,
86
,
101
,
114
,
115
,
105
,
111
,
110
,
34
,
58
,
34
,
118
,
49
,
34
,
44
,
34
,
109
,
101
,
116
,
97
,
100
,
97
,
116
,
97
,
34
,
58
,
123
,
125
,
44
,
34
,
115
,
116
,
97
,
116
,
117
,
115
,
34
,
58
,
34
,
70
,
97
,
105
,
108
,
117
,
114
,
101
,
34
,
44
,
34
,
109
,
101
,
115
,
115
,
97
,
103
,
101
,
34
,
58
,
34
,
112
,
111
,
100
,
115
,
32
,
92
,
34
,
100
,
112
,
99
,
115
,
49
,
50
,
51
,
45
,
51
,
92
,
34
,
32
,
110
,
111
};
String
s
=
bytes
.
toString
();
String
s1
=
new
String
(
bytes
);
System
.
out
.
println
(
s
);
System
.
out
.
println
(
s1
);
}
}
src/main/resources/application.properties
0 → 100644
浏览文件 @
6452d51b
src/main/resources/logback-spring.xml
0 → 100644
浏览文件 @
6452d51b
差异被折叠。
点击展开。
src/test/java/com/notemap/demo/DemoApplicationTests.java
0 → 100644
浏览文件 @
6452d51b
package
com
.
notemap
.
demo
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
class
DemoApplicationTests
{
@Test
void
contextLoads
()
{
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论