Please i need solution to the above question in spring (JAVA based config) and NOT in spring boot. Most of the tutorials i found online are based on spring boot but my app is not running on spring boot, just spring mvc. I have the necessary dependencies already in my classpath, that's liquibase-core-3.5.3 and liquibase-hibernate5-3.6 jars.
I have also created liquibase properties file (in classpath too) as shown below
driver=com.mysql.jdbc.Driver
changeLogFile=classpath:db-changelog.xml
url=jdbc:mysql://localhost:3306/mydatabase
username=myusername
password=mypassword
referenceUrl=hibernate:spring:com.mypackage.entity?dialect=org.hibernate.dialect.MySQL5InnoDBDialect
diffChangeLogFile=com/mypackage/dbchangelog/diff-changelog.xml
The problem now is how do i execute it to generate a diff changelog file?