2017-04-23 4 views
1

ich in einem SpringBoot Projekt arbeite basierend aufServletRegistrationBean kann nicht in SpringBoot gelöst werden

<parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.3.2.RELEASE</version> 
     <relativePath/> <!-- lookup parent from repository --> 
    </parent> 

ich die pom zu

aktualisiert
<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.3.RELEASE</version> 
    <relativePath/> <!-- lookup parent from repository --> 
</parent> 

die letzte Version zu haben, aber danach habe ich nicht kompilieren das Projekt mehr, weil ich dieses Problem habe:

The import org.springframework.boot.context.embedded.ServletRegistrationBean cannot be 
resolved 

Antwort

5

Gelöst!

org.springframework.boot.context.embedded.ServletRegistrationBean wurde in 1.4 zugunsten oder org.springframework.boot.web.servlet.ServletRegistrationBean veraltet. Ersteres wurde in 1.5 entfernt, da es veraltet wurde

Verwandte Themen