Skip to content

Commit c51d9ce

Browse files
committed
init
1 parent 857dbc0 commit c51d9ce

File tree

21 files changed

+585
-152
lines changed

21 files changed

+585
-152
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="ExampleSpringBootNativeDemoApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
3+
<option name="ACTIVE_PROFILES" />
4+
<module name="example-spring-boot-native-demo" />
5+
<option name="SPRING_BOOT_MAIN_CLASS" value="io.github.toquery.example.spring.boot.nativex.ExampleSpringBootNativeDemoApplication" />
6+
<method v="2">
7+
<option name="Make" enabled="true" />
8+
</method>
9+
</configuration>
10+
</component>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="ExampleSpringBootNativeMybatisApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
3+
<option name="ACTIVE_PROFILES" />
4+
<module name="example-spring-boot-native-mybatis" />
5+
<option name="SPRING_BOOT_MAIN_CLASS" value="io.github.toquery.example.spring.boot.nativex.ExampleSpringBootNativeMybatisApplication" />
6+
<method v="2">
7+
<option name="Make" enabled="true" />
8+
</method>
9+
</configuration>
10+
</component>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="ExampleSpringBootNativeMybatisPlusApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
3+
<option name="ACTIVE_PROFILES" />
4+
<module name="example-spring-boot-native-mybatis-plus" />
5+
<option name="SPRING_BOOT_MAIN_CLASS" value="io.github.toquery.example.spring.boot.nativex.ExampleSpringBootNativeMybatisPlusApplication" />
6+
<method v="2">
7+
<option name="Make" enabled="true" />
8+
</method>
9+
</configuration>
10+
</component>
16 KB
Binary file not shown.

example-spring-boot-native-demo/pom.xml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,6 @@
1111

1212
<artifactId>example-spring-boot-native-demo</artifactId>
1313

14-
<dependencies>
15-
<dependency>
16-
<groupId>org.springframework.boot</groupId>
17-
<artifactId>spring-boot-starter</artifactId>
18-
</dependency>
19-
<dependency>
20-
<groupId>org.springframework.experimental</groupId>
21-
<artifactId>spring-native</artifactId>
22-
<version>${spring-native.version}</version>
23-
</dependency>
24-
25-
<dependency>
26-
<groupId>org.springframework.boot</groupId>
27-
<artifactId>spring-boot-devtools</artifactId>
28-
<scope>runtime</scope>
29-
<optional>true</optional>
30-
</dependency>
31-
<dependency>
32-
<groupId>org.springframework.boot</groupId>
33-
<artifactId>spring-boot-configuration-processor</artifactId>
34-
<optional>true</optional>
35-
</dependency>
36-
<dependency>
37-
<groupId>org.projectlombok</groupId>
38-
<artifactId>lombok</artifactId>
39-
<optional>true</optional>
40-
</dependency>
41-
<dependency>
42-
<groupId>org.springframework.boot</groupId>
43-
<artifactId>spring-boot-starter-test</artifactId>
44-
<scope>test</scope>
45-
</dependency>
46-
<dependency>
47-
<groupId>org.junit.platform</groupId>
48-
<artifactId>junit-platform-launcher</artifactId>
49-
<scope>test</scope>
50-
</dependency>
51-
</dependencies>
5214

5315
<build>
5416
<plugins>

example-spring-boot-native-demo/src/main/java/io/github/toquery/ExampleSpringBootNativeApplication.java renamed to example-spring-boot-native-demo/src/main/java/io/github/toquery/example/spring/boot/nativex/ExampleSpringBootNativeDemoApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
package io.github.toquery;
1+
package io.github.toquery.example.spring.boot.nativex;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55

66
@SpringBootApplication
7-
public class ExampleSpringBootNativeApplication {
7+
public class ExampleSpringBootNativeDemoApplication {
88

99
public static void main(String[] args) {
10-
SpringApplication.run(ExampleSpringBootNativeApplication.class, args);
10+
SpringApplication.run(ExampleSpringBootNativeDemoApplication.class, args);
1111
}
1212

1313
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11

2+
management:
3+
server:
4+
port: 8081
5+
endpoint:
6+
health:
7+
enabled: true
8+
probes:
9+
enabled: true
10+
show-details: ALWAYS
11+
info:
12+
enabled: true
13+
14+
endpoints:
15+
web:
16+
exposure:
17+
include: "*" # health,info,prometheus
18+
19+
metrics:
20+
enable:
21+
jvm: true
22+
use-global-registry: false
23+
24+
25+
server:
26+
shutdown: graceful # 优雅停机
27+
28+
spring:
29+
application:
30+
name: example-spring-boot-native-demo

example-spring-boot-native-demo/src/test/java/io/github/toquery/ExampleSpringBootNativeApplicationTests.java renamed to example-spring-boot-native-demo/src/test/java/io/github/toquery/example/spring/boot/nativex/ExampleSpringBootNativeApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.toquery;
1+
package io.github.toquery.example.spring.boot.nativex;
22

33
import org.junit.jupiter.api.Test;
44
import org.springframework.boot.test.context.SpringBootTest;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>example-spring-boot-native</artifactId>
7+
<groupId>io.github.toquery</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>example-spring-boot-native-mqtt</artifactId>
13+
14+
<build>
15+
<plugins>
16+
<plugin>
17+
<groupId>org.springframework.boot</groupId>
18+
<artifactId>spring-boot-maven-plugin</artifactId>
19+
</plugin>
20+
<plugin>
21+
<groupId>org.springframework.experimental</groupId>
22+
<artifactId>spring-aot-maven-plugin</artifactId>
23+
</plugin>
24+
<plugin>
25+
<groupId>org.graalvm.buildtools</groupId>
26+
<artifactId>native-maven-plugin</artifactId>
27+
</plugin>
28+
</plugins>
29+
</build>
30+
31+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package io.github.toquery.example.spring.boot.nativex;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class ExampleSpringBootNativeMQTTApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(ExampleSpringBootNativeMQTTApplication.class, args);
11+
}
12+
13+
}

0 commit comments

Comments
 (0)