Configure application.properties - Fi0x/LanguageGenerator GitHub Wiki
Location of `application.properties
The exposed settings for your web-server, can be found in src/main/resources/application.properties.
If you build your own .war-file, you can change the values before building to the ones you need. This will ensure, that the final file will use these properties, if no external application.properties-file exists.
If you already have a .war-file, but want to change the properties in the file without rebuilding it, you can add an external application.properties-file. To do this, just add a config folder in the directory, where your .war-file is stored. Inside of that config-folder, add a application.properties-file and fill it with the properties you need.
Values in application.properties
server.port, default=2345: This is the port, under which the web-server will be reachablespring.mvc.servlet.path, default=/: This is the url-path, that will be used as a prefix for every page-url in this applicationserver.error.path, default=/error: The url, that should be used, if an error occurs and an error-page needs to be displayed- Should not be changed
server.error.whitelabel.enabled, default=false: This tells the application if a default error-page should be used, or the custom one the application providesspring.mvc.view.prefix, default=/WEB-INF/jsp/: The folder within thesrc/main/webapp-folder, in which the .jsp-files are stored- Should not be changed
spring.mvc.view.suffix, default=.jsp: The file-ending of .jsp-files that are used to display web-pages- Should not be changed
spring.jpa.defer-datasource-initialization, default=true: This will delay running thesrc/main/resources/data.sql-file, until after all tables were created in the database- If set to
false, this could lead to problems at the first start of the application - Can be set to false, if all required tables are already present in the database
- If set to
spring.jpa.open-in-view, default=false: Improves the performance of the application- Should not be changed
spring.datasource.url, default=jdbc:mysql://localhost:3306/languages: The url for the database, the application should use- If you are running the database from a docker-container with the recommended settings, you can keep this as it is
spring.datasource.username, default=dummyUser: The username that will be used, to connect to the databasespring.datasource.password, default=123: The password that will be used for the user, to connect to the databasespring.jpa.properties.hibernate.dialect, default=org.hibernate.dialect.MySQL8Dialect: This is the sql-dialect your database uses- Can be removed, if the default dialect should be used
spring.jpa.hibernate.ddl-auto, defualt=update: Updates the tables in the database, if they don't already existspring.datasource.driver-class-name, default=com.mysql.cj.jdbc.Driver: The driver for your databaselanguagegenerator.username, default=fi0x: A user, that will always be created for the web-server and added to the database- Should be changed to a user, that you actually want in your database
languagegenerator.password, default=123: The password for the automatically created user- Should be changed
logging.level.org.springframework, default=info: The log-level for all spring-classes, that are used in the web-serverlogging.level.org.springframework.security, default=info: The log-level for spring-security-classes, that are used in the web-serverlogging.level.io.fi0x.languagegenerator, default=info: The log-level for all classes that are part of the web-serverlogging.level.org.hibernate.SQL, default=info: The log-level for hybernate-calls to the database