This allows apps with spring.main.web-application-type={REACTIVE|SERVLET} to function properly without error. fixes gh-678