a project for exploring the integration of spring boot with abstratium.dev

Setup

run mysql - see abstratium.dev manual

docker run -it --network serverless --rm mysql mysql -h serverless-mysql --port 3306 -u root -p

-- https://spring.io/guides/gs/accessing-data-mysql/
create database db_example;
create user 'springuser'@'%' identified by 'ThePassword';
grant all on db_example.* to 'springuser'@'%';

Links

useful

  • other config:
    • java -jar app.jar --spring.config.location=config/*/ or with a specific file name
    • java -jar app.jar --property="value"
    • java -Dproperty.name="value" -jar app.jar
    • env vars:
      • export name=value and then java -jar app.jar

To Explore