Auto configuration
This chapter contains additional information for the auto configuration of NILS4Spring.
Add to your project
Different configuration
There are different types of auto configuration that are enabled if some classes are found on the classpath.
SnakeYaml Adapter
The SnakeYaml Adapter auto configuration is active if you use the nils4spring-spring-boot-starter
(See here for more informationu).
The auto configuration process will check:
-
Is there a file named
translation.yml
on the classpath. -
Is the value of the configuration property
nils.base-file-name
configured that ends with.yml
or.yaml
.
Jackson Adapter
To activate the Jackson Adapter you must add its dependency (See NILS documentation - Jackson Adapter for the neccessary dependencies).
-
Is there a file named
translation.yml
on the classpath. -
Is there a file named
translation.json
on the classpath. -
Is the value of the configuration property
nils.base-file-name
configured that ends with.json
,.yml
or.yaml
.
Gson Adapter
To activate the Gson-Adapter you must add its dependency (See NILS documentation - Gson Adapter for the neccessary dependencies).
-
Is there a file named
translation.json
on the classpath. -
Is the value of the configuration property
nils.base-file-name
configured that ends with.json
.
JDBC Adapter
To activate the JDBC-Adapter you must add its dependency (See NILS documentation - JDBC Adapter for the neccessary dependencies).
-
Are values of the configuration properties
nils.url
,nils.username
andnils.password
configured.