10. How to change the repository location?
The default implementation of the reposiotry is done through flat files. When application
started, the repository will be created at the path (location) specified by the property "dms.repository.path"
in "application.properties" file. The default path specified will be "/repository". If is not exists,
application tries to create this directory and setup the repository. It if couldn't create this directory,
it will try to create a directory "repository" at the path specified by "user.home" and setup the repository.
If we would like to change the path of the repository to any other location, we need to do the following steps.
- Stop the application.
- Copy the contents of the current repository (/repository) to the required directory (/myrepository).
- Change the value of property "dms.repository.path" in "application.properties" to "/myrepository".
- Start the application.