Skip to content

Commit 46ff07b

Browse files
committed
ms
1 parent 1d37da8 commit 46ff07b

File tree

125 files changed

+6416
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+6416
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.mvn
2+
.idea
3+
.settings
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*
2+
!target/*-runner
3+
!target/*-runner.jar
4+
!target/lib/*
5+
!target/quarkus-app/*
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#Maven
2+
target/
3+
pom.xml.tag
4+
pom.xml.releaseBackup
5+
pom.xml.versionsBackup
6+
release.properties
7+
8+
# Eclipse
9+
.project
10+
.classpath
11+
.settings/
12+
bin/
13+
14+
# IntelliJ
15+
.idea
16+
*.ipr
17+
*.iml
18+
*.iws
19+
20+
# NetBeans
21+
nb-configuration.xml
22+
23+
# Visual Studio Code
24+
.vscode
25+
.factorypath
26+
27+
# OSX
28+
.DS_Store
29+
30+
# Vim
31+
*.swp
32+
*.swo
33+
34+
# patch
35+
*.orig
36+
*.rej
37+
38+
# Local environment
39+
.env
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# code-with-quarkus project
2+
3+
This project uses Quarkus, the Supersonic Subatomic Java Framework.
4+
5+
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
6+
7+
## Running the application in dev mode
8+
9+
You can run your application in dev mode that enables live coding using:
10+
```shell script
11+
./mvnw compile quarkus:dev
12+
```
13+
14+
## Packaging and running the application
15+
16+
The application can be packaged using:
17+
```shell script
18+
./mvnw package
19+
```
20+
It produces the `code-with-quarkus-1.0.0-SNAPSHOT-runner.jar` file in the `/target` directory.
21+
Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/lib` directory.
22+
23+
If you want to build an _über-jar_, execute the following command:
24+
```shell script
25+
./mvnw package -Dquarkus.package.type=uber-jar
26+
```
27+
28+
The application is now runnable using `java -jar target/code-with-quarkus-1.0.0-SNAPSHOT-runner.jar`.
29+
30+
## Creating a native executable
31+
32+
You can create a native executable using:
33+
```shell script
34+
./mvnw package -Pnative
35+
```
36+
37+
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
38+
```shell script
39+
./mvnw package -Pnative -Dquarkus.native.container-build=true
40+
```
41+
42+
You can then execute your native executable with: `./target/code-with-quarkus-1.0.0-SNAPSHOT-runner`
43+
44+
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.html.
45+
46+
# Spring Web
47+
48+
<p>A Hello World Spring Web Controller</p>
49+
50+
Guide: https://quarkus.io/guides/spring-web
51+
52+
```
53+
curl --location --request GET '0.0.0.0:8080/hello-spring'
54+
```

0 commit comments

Comments
 (0)