brew install java
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"
🍺 /usr/local/Cellar/openjdk/15.0.1: 614 files, 324.9MB
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