Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated property (spring.main.web-environment) referenced in section 74.2 of reference manual #12940

Closed
bmatthews68 opened this issue Apr 22, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@bmatthews68
Copy link

commented Apr 22, 2018

Section 74.2 (Externalize the Configuration of SpringApplication) of the reference manual (https://docs.spring.io/spring-boot/docs/current/reference/html/howto-properties-and-configuration.html#howto-externalize-configuration) references a deprecated property.

In this section the now deprecated spring.main.web-environment property is used to disable the web container instead of spring.main.web-environment-type. The following example:

spring.main.web-environment=false
spring.main.banner-mode=off

should be changed to:

spring.main.web-environment-type=none
spring.main.banner-mode=off
@snicoll

This comment has been minimized.

Copy link
Member

commented Apr 22, 2018

@bmatthews68 good catch, thanks. FYI, the name of the property is spring.main.web-application-type and not spring.main.web-environment-type.

@snicoll snicoll closed this in 6df1ea3 Apr 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.