1 Star 0 Fork 0

读钓 / native-demo

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

spring-native-demo

Spring Native可以通过GraalVMSpringBoot应用程序编译成原生镜像,本地编译的话需要的前置条件比较多,会遇到各种各样的坑,而且GraalVM现在还不支持 mac 的 m1 芯片。

为了舒适的体验Spring Native,本示例使用了GitHub Actions自动构建 docker 镜像,并推送到 docker hub 上,直接使用如下命令:

docker run -d -p 8080:8080 --name native-demo \
-v /opt/docker/nativedemo/logs:/workspace/logs \
-v /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime \
dudiao/native-demo:0.0.1-SNAPSHOT
  • 用户接口:http://ip:8080/user/list
  • 用户页面:http://ip:8080/user
  • 新增用户:POST http://ip:8080/user/add

Repository Comments ( 0 )

Sign in to post a comment

About

No description expand collapse
Java and 2 more languages
Apache-2.0
Cancel

Releases (1)

All

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/songyinyin/native-demo.git
git@gitee.com:songyinyin/native-demo.git
songyinyin
native-demo
native-demo
master

Search