title: How to use liquibase to generate a changelog from diffs between a database and persistence entities in spring?
body: <p>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.</p>
  
  <p>I have also created liquibase properties file (in classpath too) as shown below</p>
  
  <pre><code>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
  </code></pre>
  
  <p>The problem now is how do i execute it to generate a diff changelog file?</p>