GithubHelp home page GithubHelp logo

lichkingzz / lumine-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lumine1996/lumine-starter

0.0 0.0 0.0 111 KB

有一分热,发一分光,就令萤火一般,也可以在黑暗里发一点光,不必等候炬火。

License: BSD 3-Clause "New" or "Revised" License

JavaScript 1.48% Java 98.52%

lumine-starter's Introduction

Lumine Starter

有一分热,发一分光,就令萤火一般,也可以在黑暗里发一点光,不必等候炬火。

介绍

Spring Boot 模板, 包含以下内容

使用

1. 数据库

安装数据库

官方文档: https://mariadb.com/kb/en/getting-installing-and-upgrading-mariadb/

执行 structure.sql

执行 init_data.sql

2. 调试

修改spring.datasource中的配置为自己创建的数据库

启动 LumineStarterApplication.java

Swagger页面: http://localhost:8500/swagger-ui/index.html

Knife4J页面: http://localhost:8500/doc.html

3. 运行

打包运行

需要 JDK 17

mvn clean package
java -jar target/starter-1.0.0-SNAPSHOT.jar --server.port=8500

编译

需要 GraalVM 22.3+

mvn -Pnative native:compile -DskipTests
./target/starter --server.port=8500

如使用native:compile-no-fork, 需要配置mainClass

已知问题

  • 当 Spring Boot 升级到 3.0.6 及以上时, 暂不支持 spring-aop
  • 使用 spring-boot:build-image 插件生成的镜像无法运行, 二进制文件不一样, 反射配置缺失
  • 在 SpringBoot 3.x 中, Knife4J 文档插件 Authorize 页面不可用, 请使用 文档管理 -> 全局参数设置
  • native:compile 暂时无法在 Windows 中使用, 它每次都会重新生成target/tmp/native-image-<timestamp>.args, 文件中使用了\\作为分隔符, 无法使用
  • 本项目中存在一些多余的依赖和注解, 后续将进行清理

欢迎各位提供任何形式的帮助

Spring Native 参考项目

mybatis-plus-graalvm-sample

mybatis-spring-native

mybatis-native-demo

lumine-starter's People

Contributors

lumine1996 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.