title: Override application properties of spring application
body: <p>Currently we developing a web application on we use <strong>spring framework</strong>, this application contains several modules, so we chose to put all the configuration in a  module named &quot;<em><strong>shared-module</strong></em>&quot; when we using the IDE we can specify the propority file of profile but when we try to launch this application outside of IDE we can not point to the correct property file.</p>
  <p>Application strucuture:
  <strong>shared-module</strong>--(injected)--&gt;<strong>application.jar</strong></p>
  <p><a href="https://i.stack.imgur.com/pPakg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pPakg.png" alt="enter image description here" /></a></p>