Module settings

All properties start with the acrossWebModule. prefix. Note that several Spring (Boot) properties can also influence behaviour of the AcrossWebModule, for example the spring.http.multipart.* properties.

Property Type Description Default

views.thymeleaf.enabled

Boolean

Should Thymeleaf view support be enabled.

true

views.jsp.enabled

Boolean

Should JSP/JSTL view support be enabled.

false

resources.path

String

Relative path for serving all static resources.

/across/resources

resources.folders

String[]

Default subfolders of views that should be served as static resources.

js,css,static

resources.webjars

String

Path prefix for webjar resources.

/webjars

resources.versioning.enabled

Boolean

Auto configure versioning of the default resource resolvers.

true

resources.versioning.version

String

Fixed version if resource versioning is enabled. Default will use build number or module version.

null

resources.caching.enabled

Boolean

Auto configure client-side caching of static resources.

true

resources.caching.period

Integer

Period for client-side resource caching (if enabled). Defaults to 1 year.

60*60*24*365

registerGlobalBuilderContext

Boolean

Should a request-bound ViewElementBuilderContext be created.

true

templates.enabled

Boolean

Should support for layout templates be enabled.

true

templates.auto-register

Boolean

If layout templates are enabled, should named templates be autodetected.

true

development-views

Map<String,String>

Map of physical locations for views resources. Only used if development mode is active.

Collections.emptyMap()