spring应用程序不会作为Web应用程序运行,也不会使用嵌入式tomcat服务器。我提供了我的控制台和pom.xml日志。请帮我。
2017-03-17 01:38:09.426 INFO 18696 --- [ main] io.springbootstarter.SpringCourseApi : Starting SpringCourseApi on gandy with PID 18696 (C:\Spring\workspace\course-api\target\classes started by gandhar in C:\Spring\workspace\course-api)
2017-03-17 01:38:09.431 INFO 18696 --- [ main] io.springbootstarter.SpringCourseApi : No active profile set, falling back to default profiles: default
2017-03-17 01:38:09.539 INFO 18696 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5ae50ce6: startup date [Fri Mar 17 01:38:09 MDT 2017]; root of context hierarchy
2017-03-17 01:38:11.361 INFO 18696 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-03-17 01:38:11.383 INFO 18696 --- [ main] io.springbootstarter.SpringCourseApi : Started SpringCourseApi in 2.662 seconds (JVM running for 3.22)
2017-03-17 01:38:11.384 INFO 18696 --- [ Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@5ae50ce6: startup date [Fri Mar 17 01:38:09 MDT 2017]; root of context hierarchy
2017-03-17 01:38:11.385 INFO 18696 --- [ Thread-1] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
当我尝试运行Web应用程序时,这是我的控制台输出。我的pom.xml看起来像这样 -
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springboot.courses</groupId>
<artifactId>course-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Course_API</name>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.4.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<properties>
<java.version>1.8</java.version>
</properties>
</project>