Home > Back-end >  Spring boot2.0 won't run
Spring boot2.0 won't run

Time:02-05

Take a spring boot2.0 web project to do a few small changes,. Before I do Net, according to the online tutorial to get a few days didn't also the way to run up, has been an error,

Don't know if it is missing file or not configured, help have a look? Can remote best

Acknowledge a red envelope, the job is done

CodePudding user response:

2020.3 trial version Win10 environment: operating system, the IDEA has not expired, tomacat 8, MySql 5

CodePudding user response:

The old man should haven't go off work here

CodePudding user response:

You can send the picture of the error

CodePudding user response:

https://blog.csdn.net/dotnetstudio/article/details/61414974

CodePudding user response:

Concrete can direct messages I

CodePudding user response:

Before taking over run up?

CodePudding user response:

You give out the error message

CodePudding user response:

After running in the main method error

 
The Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Context. ApplicationContextException: Unable to start the web server; Nested exception is org. Springframework. Context. ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

CodePudding user response:

refer to 6th floor after brain injury response:
run up before taking over?


War file can run in tomcat configuration

CodePudding user response:

Start the class ever add @ SpringBootApplication
Or add

Org. Springframework. Boot
Spring - the boot - starter - web

CodePudding user response:

Name
references to the tenth floor injured brain response:
start classes do you have any add @ SpringBootApplication
Or add

Org. Springframework. Boot
Spring - the boot - starter - web


Tried, is still the same error, change the configuration to compile or something, or run directly

CodePudding user response:

Click on the run after the clean, error
 
The Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Context. ApplicationContextException:
Unable to start the web server; Nested exception is org. Springframework. Context. ApplicationContextException:
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

  • Related