[JAVA] Spring Boot 2.0.0 does not start built-in tomcat

--SpringApplication # setWebEnvironment () is deprecated

public class Main {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(Main.class);
        app.setWebApplicationType(WebApplicationType.NONE);
        ApplicationContext ctx = app.run(args);
        Main main = ctx.getBean(Main.class);
        //Something processing
    }
}

Recommended Posts

Spring Boot 2.0.0 does not start built-in tomcat
Terminal does not start
When @Transactional of Spring Boot does not work
Spring Boot application built-in Tomcat, Apache and WebSocket integration
Spring boot temporary upload location [/ tmp / tomcat ・ ・ ・ is not valid]
Docker test DB does not start
Container does not start with docker-compose
MySQL container does not start in Docker
Start web application development with Spring Boot
Try Spring Boot 1 (Environment construction ~ Tomcat startup)
[NetBeans] Story when it does not start
How to not start Flyway when running unit tests in Spring Boot
SameSite cookie in Spring Boot (Spring Web MVC + Tomcat)
UriComponentsBuilder does not encode "+" depending on spring version
How to use built-in h2db with spring boot
Challenge Spring Boot
Eclipse does not start after Java 11 is installed
Spring Boot Form
Spring Boot Memorandum
gae + spring boot
Please note that Spring Boot + Tomcat 8.5.8 cannot be used!
Localhost3000 does not start up in Docker / Rails development.
Access the built-in h2db of spring boot with jdbcTemplate
Docker Compose does not start with docker.credentials.errors.InitializationError error message
Until you start development with Spring Boot in eclipse 1
Deploy the Spring Boot project to Tomcat on XAMPP
Until you start development with Spring Boot in eclipse 2
File upload with Spring Boot (do not use Multipart File)
When the server does not start with rails s
SPRING BOOT learning record 01
Spring Boot + Heroku Postgres
1. Start Spring framework from 1
Spring boot memo writing (1)
First Spring Boot (DI)
SPRING BOOT learning record 02
Spring Boot2 cheat sheet
Spring Boot exception handling
Spring Boot Servlet mapping
Spring boot development-development environment-
Spring Boot learning procedure
Learning Spring Boot [Beginning]
Spring boot memo writing (2)
Spring Boot 2.2 Document Summary
[Spring Boot] DataSourceProperties $ DataSourceBeanCreationException
Spring Boot 2.3 Application Availability
Spring boot tutorials Topics
Sidekiq-limit_fetch does not work
Download with Spring Boot
Output embedded Tomcat access log to standard output with Spring Boot
How to get the log when install4j does not start