Saturday, June 05, 2021

CentOS 7 Ngnix 403 Error

Ngnix reports error 403 when access all connects under a directory but works under a different direction named "images". Original I thought it is dir/file permission issue. It turns out it is the default selinux setting. A good read

Saturday, May 22, 2021

Passing parameters into springboot application

  • User OS env variable
  • Use java -Dk1=v1 -Dk2=v2
  • Program argument java -jar my.jar --k1=v1 --k2=v2
  • Use an external file and pointing to it with export spring.config.location=/tmp/ or passing it in with java parameter -Dspring.config.location=/tmp/