How to specify environment variables in application.properties file so my application can use Docker container MySQL not local MySQL in Spring?

前端 未结 0 557
忘掉有多难
忘掉有多难 2021-01-05 16:26

i\'m new to Dockers,i want my spring application to access MySQL db from container but i don\'t know how to add environment variables in docker-compose file and application

相关标签:
回答
  • 消灭零回复
提交回复
热议问题