Spring profiles
inmem
- in memory authenticationldap
- LDAP server authenticationtest
- test properties for H2 database from test.properties.fileprod
- production properties for database from database.properties
Examples
- run dev+mysql
mvn jetty:run -Ddatabase=mysql -Djetty=true -Dwar=false -Dspring.profiles.active="prod,inmem"
- build war
mvn package -Ddatabase=mysql -Dwar=true
Must be deployed in ROOT context
- Spring profiles for Tomcat
createsetenv.sh
in Tomcat'sbin
directory and putJAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=prod,ldap"
- Database settings placing in
cis/WEB-INF/resources/database.properties
- Indices folder must be created and given rights to write.