using jdbc with spring boot https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-data-jdbc-with-azure-mysql?toc=/azure/mysql/toc ...
for Spring: 1. configure spring beans (xml, annotation, ..) 2. create a spring container on main method. (This is factory, or known as application context) 3. retrieve beans from factory Spring Bean: ...