Skip to content

b1ngx/springboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot

JDK

Install

brew install java

Caveats

For the system Java wrappers to find this JDK, symlink it with

sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

openjdk is keg-only, which means it was not symlinked into /usr/local, because it shadows the macOS java wrapper.

If you need to have openjdk first in your PATH run:

echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc

For compilers to find openjdk you may need to set:

export CPPFLAGS="-I/usr/local/opt/openjdk/include"

Summary

🍺 /usr/local/Cellar/openjdk/15.0.1: 614 files, 324.9MB

H2 Database

application.properties 配置如下:

spring.datasource.url=jdbc:h2:file:/Users/b1ngx/IdeaProjects/demo/src/main/resources/data/demo;AUTO_SERVER=true
spring.h2.console.enabled=true

参考: Spring Boot Java H2 Database Setup in IntelliJ

Annotation

Spring 常用注解

Swagger

Spring Boot整合swagger使用教程

在 Spring Boot 项目中使用 Swagger 文档

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages