WebApplicationInitializer not working after upgrading spring-boot-starter-parent












0














My code used to works well before I upgraded spring-boot-starter-parent from 1.0.2.RELEASE to 2.1.0.RELEASE.



When the version of spring-boot-starter-parent is 1.0.2.RELEASE, I could deploy this project to tomcat, run tomcat, and when I type localhost:8080/greeting.html on my browser I could see 'Hello World".



But after I upgrade the version to 2.1.0.RELEASE and do the same thing, I just got a 404 not found error.



QUESTION: How can I fix this problem with version 2.1.0.RELEASE of spring-boot-starter-parent?



Here is my code snippet and the pom file:



pom.xml:



<?xml version="1.0" encoding="UTF-8"?>
<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>com.pluralsight</groupId>
<artifactId>event-tracker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

<name>event-tracker</name>
<description>An app to track our Events</description>

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

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>


</project>


WebConfig:



package com.pluralsight;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "com.pluralsight")
public class WebConfig {
}


WebAppInitializer:



package com.pluralsight;

import javax.servlet.ServletContext;
import javax.servlet.ServletRegistration;

import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

public class WebAppInitializer implements WebApplicationInitializer {

@Override
public void onStartup(ServletContext servletContext) {
WebApplicationContext context = getContext();
servletContext.addListener(new ContextLoaderListener(context));
ServletRegistration.Dynamic dispatcher = servletContext.addServlet("DispatcherServlet", new DispatcherServlet(context));
dispatcher.setLoadOnStartup(1);
dispatcher.addMapping("*.html");
}

private AnnotationConfigWebApplicationContext getContext() {
AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
context.setConfigLocation("com.pluralsight.WebConfig");
return context;
}
}


HelloController:



package com.pluralsight.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

@RequestMapping(value = "/greeting")
public String sayHello(Model model) {
model.addAttribute("greeting", "Hello World");

return "hello.jsp";
}
}









share|improve this question






















  • Why do you even have a WebAppInitializer you are basically bypassing Spring Boot with that. Instead you should have a class extending SpringBootServletInitializer .
    – M. Deinum
    Nov 13 '18 at 13:59










  • @M.Deinum I followed a tutorial about Spring MVC 4(app.pluralsight.com/library/courses/spring-mvc4-introduction/…) of which the demo uses WebAppInitializer.
    – user2916610
    Nov 13 '18 at 16:09












  • Then either use a different tutorial as this has nothing to do with Spring Boot or you aren’t following the tutorial. If you aren’t using SPring Boot then remove the starters and/or build a regular jar or create an @SpringBootApplication annotation class which also extends SpringBootServletInitializer as explained d in the spring boot references guide.
    – M. Deinum
    Nov 13 '18 at 16:40
















0














My code used to works well before I upgraded spring-boot-starter-parent from 1.0.2.RELEASE to 2.1.0.RELEASE.



When the version of spring-boot-starter-parent is 1.0.2.RELEASE, I could deploy this project to tomcat, run tomcat, and when I type localhost:8080/greeting.html on my browser I could see 'Hello World".



But after I upgrade the version to 2.1.0.RELEASE and do the same thing, I just got a 404 not found error.



QUESTION: How can I fix this problem with version 2.1.0.RELEASE of spring-boot-starter-parent?



Here is my code snippet and the pom file:



pom.xml:



<?xml version="1.0" encoding="UTF-8"?>
<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>com.pluralsight</groupId>
<artifactId>event-tracker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

<name>event-tracker</name>
<description>An app to track our Events</description>

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

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>


</project>


WebConfig:



package com.pluralsight;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "com.pluralsight")
public class WebConfig {
}


WebAppInitializer:



package com.pluralsight;

import javax.servlet.ServletContext;
import javax.servlet.ServletRegistration;

import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

public class WebAppInitializer implements WebApplicationInitializer {

@Override
public void onStartup(ServletContext servletContext) {
WebApplicationContext context = getContext();
servletContext.addListener(new ContextLoaderListener(context));
ServletRegistration.Dynamic dispatcher = servletContext.addServlet("DispatcherServlet", new DispatcherServlet(context));
dispatcher.setLoadOnStartup(1);
dispatcher.addMapping("*.html");
}

private AnnotationConfigWebApplicationContext getContext() {
AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
context.setConfigLocation("com.pluralsight.WebConfig");
return context;
}
}


HelloController:



package com.pluralsight.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

@RequestMapping(value = "/greeting")
public String sayHello(Model model) {
model.addAttribute("greeting", "Hello World");

return "hello.jsp";
}
}









share|improve this question






















  • Why do you even have a WebAppInitializer you are basically bypassing Spring Boot with that. Instead you should have a class extending SpringBootServletInitializer .
    – M. Deinum
    Nov 13 '18 at 13:59










  • @M.Deinum I followed a tutorial about Spring MVC 4(app.pluralsight.com/library/courses/spring-mvc4-introduction/…) of which the demo uses WebAppInitializer.
    – user2916610
    Nov 13 '18 at 16:09












  • Then either use a different tutorial as this has nothing to do with Spring Boot or you aren’t following the tutorial. If you aren’t using SPring Boot then remove the starters and/or build a regular jar or create an @SpringBootApplication annotation class which also extends SpringBootServletInitializer as explained d in the spring boot references guide.
    – M. Deinum
    Nov 13 '18 at 16:40














0












0








0







My code used to works well before I upgraded spring-boot-starter-parent from 1.0.2.RELEASE to 2.1.0.RELEASE.



When the version of spring-boot-starter-parent is 1.0.2.RELEASE, I could deploy this project to tomcat, run tomcat, and when I type localhost:8080/greeting.html on my browser I could see 'Hello World".



But after I upgrade the version to 2.1.0.RELEASE and do the same thing, I just got a 404 not found error.



QUESTION: How can I fix this problem with version 2.1.0.RELEASE of spring-boot-starter-parent?



Here is my code snippet and the pom file:



pom.xml:



<?xml version="1.0" encoding="UTF-8"?>
<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>com.pluralsight</groupId>
<artifactId>event-tracker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

<name>event-tracker</name>
<description>An app to track our Events</description>

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

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>


</project>


WebConfig:



package com.pluralsight;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "com.pluralsight")
public class WebConfig {
}


WebAppInitializer:



package com.pluralsight;

import javax.servlet.ServletContext;
import javax.servlet.ServletRegistration;

import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

public class WebAppInitializer implements WebApplicationInitializer {

@Override
public void onStartup(ServletContext servletContext) {
WebApplicationContext context = getContext();
servletContext.addListener(new ContextLoaderListener(context));
ServletRegistration.Dynamic dispatcher = servletContext.addServlet("DispatcherServlet", new DispatcherServlet(context));
dispatcher.setLoadOnStartup(1);
dispatcher.addMapping("*.html");
}

private AnnotationConfigWebApplicationContext getContext() {
AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
context.setConfigLocation("com.pluralsight.WebConfig");
return context;
}
}


HelloController:



package com.pluralsight.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

@RequestMapping(value = "/greeting")
public String sayHello(Model model) {
model.addAttribute("greeting", "Hello World");

return "hello.jsp";
}
}









share|improve this question













My code used to works well before I upgraded spring-boot-starter-parent from 1.0.2.RELEASE to 2.1.0.RELEASE.



When the version of spring-boot-starter-parent is 1.0.2.RELEASE, I could deploy this project to tomcat, run tomcat, and when I type localhost:8080/greeting.html on my browser I could see 'Hello World".



But after I upgrade the version to 2.1.0.RELEASE and do the same thing, I just got a 404 not found error.



QUESTION: How can I fix this problem with version 2.1.0.RELEASE of spring-boot-starter-parent?



Here is my code snippet and the pom file:



pom.xml:



<?xml version="1.0" encoding="UTF-8"?>
<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>com.pluralsight</groupId>
<artifactId>event-tracker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

<name>event-tracker</name>
<description>An app to track our Events</description>

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

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>


</project>


WebConfig:



package com.pluralsight;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "com.pluralsight")
public class WebConfig {
}


WebAppInitializer:



package com.pluralsight;

import javax.servlet.ServletContext;
import javax.servlet.ServletRegistration;

import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

public class WebAppInitializer implements WebApplicationInitializer {

@Override
public void onStartup(ServletContext servletContext) {
WebApplicationContext context = getContext();
servletContext.addListener(new ContextLoaderListener(context));
ServletRegistration.Dynamic dispatcher = servletContext.addServlet("DispatcherServlet", new DispatcherServlet(context));
dispatcher.setLoadOnStartup(1);
dispatcher.addMapping("*.html");
}

private AnnotationConfigWebApplicationContext getContext() {
AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();
context.setConfigLocation("com.pluralsight.WebConfig");
return context;
}
}


HelloController:



package com.pluralsight.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

@RequestMapping(value = "/greeting")
public String sayHello(Model model) {
model.addAttribute("greeting", "Hello World");

return "hello.jsp";
}
}






java spring spring-boot






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 '18 at 10:28









user2916610user2916610

365210




365210












  • Why do you even have a WebAppInitializer you are basically bypassing Spring Boot with that. Instead you should have a class extending SpringBootServletInitializer .
    – M. Deinum
    Nov 13 '18 at 13:59










  • @M.Deinum I followed a tutorial about Spring MVC 4(app.pluralsight.com/library/courses/spring-mvc4-introduction/…) of which the demo uses WebAppInitializer.
    – user2916610
    Nov 13 '18 at 16:09












  • Then either use a different tutorial as this has nothing to do with Spring Boot or you aren’t following the tutorial. If you aren’t using SPring Boot then remove the starters and/or build a regular jar or create an @SpringBootApplication annotation class which also extends SpringBootServletInitializer as explained d in the spring boot references guide.
    – M. Deinum
    Nov 13 '18 at 16:40


















  • Why do you even have a WebAppInitializer you are basically bypassing Spring Boot with that. Instead you should have a class extending SpringBootServletInitializer .
    – M. Deinum
    Nov 13 '18 at 13:59










  • @M.Deinum I followed a tutorial about Spring MVC 4(app.pluralsight.com/library/courses/spring-mvc4-introduction/…) of which the demo uses WebAppInitializer.
    – user2916610
    Nov 13 '18 at 16:09












  • Then either use a different tutorial as this has nothing to do with Spring Boot or you aren’t following the tutorial. If you aren’t using SPring Boot then remove the starters and/or build a regular jar or create an @SpringBootApplication annotation class which also extends SpringBootServletInitializer as explained d in the spring boot references guide.
    – M. Deinum
    Nov 13 '18 at 16:40
















Why do you even have a WebAppInitializer you are basically bypassing Spring Boot with that. Instead you should have a class extending SpringBootServletInitializer .
– M. Deinum
Nov 13 '18 at 13:59




Why do you even have a WebAppInitializer you are basically bypassing Spring Boot with that. Instead you should have a class extending SpringBootServletInitializer .
– M. Deinum
Nov 13 '18 at 13:59












@M.Deinum I followed a tutorial about Spring MVC 4(app.pluralsight.com/library/courses/spring-mvc4-introduction/…) of which the demo uses WebAppInitializer.
– user2916610
Nov 13 '18 at 16:09






@M.Deinum I followed a tutorial about Spring MVC 4(app.pluralsight.com/library/courses/spring-mvc4-introduction/…) of which the demo uses WebAppInitializer.
– user2916610
Nov 13 '18 at 16:09














Then either use a different tutorial as this has nothing to do with Spring Boot or you aren’t following the tutorial. If you aren’t using SPring Boot then remove the starters and/or build a regular jar or create an @SpringBootApplication annotation class which also extends SpringBootServletInitializer as explained d in the spring boot references guide.
– M. Deinum
Nov 13 '18 at 16:40




Then either use a different tutorial as this has nothing to do with Spring Boot or you aren’t following the tutorial. If you aren’t using SPring Boot then remove the starters and/or build a regular jar or create an @SpringBootApplication annotation class which also extends SpringBootServletInitializer as explained d in the spring boot references guide.
– M. Deinum
Nov 13 '18 at 16:40












1 Answer
1






active

oldest

votes


















0














You can follow this link



Instead of WebAppInitializer class write Application class as in above link and declare start-class tag in properties.



It should work.






share|improve this answer





















  • I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
    – user2916610
    Nov 13 '18 at 11:25











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53278926%2fwebapplicationinitializer-not-working-after-upgrading-spring-boot-starter-parent%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can follow this link



Instead of WebAppInitializer class write Application class as in above link and declare start-class tag in properties.



It should work.






share|improve this answer





















  • I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
    – user2916610
    Nov 13 '18 at 11:25
















0














You can follow this link



Instead of WebAppInitializer class write Application class as in above link and declare start-class tag in properties.



It should work.






share|improve this answer





















  • I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
    – user2916610
    Nov 13 '18 at 11:25














0












0








0






You can follow this link



Instead of WebAppInitializer class write Application class as in above link and declare start-class tag in properties.



It should work.






share|improve this answer












You can follow this link



Instead of WebAppInitializer class write Application class as in above link and declare start-class tag in properties.



It should work.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 10:40









Goutham P NGoutham P N

266




266












  • I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
    – user2916610
    Nov 13 '18 at 11:25


















  • I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
    – user2916610
    Nov 13 '18 at 11:25
















I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
– user2916610
Nov 13 '18 at 11:25




I followed the tutorial in link, except that I keep my onStartup method for customizing dispatcher. Still return 404 error.
– user2916610
Nov 13 '18 at 11:25


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53278926%2fwebapplicationinitializer-not-working-after-upgrading-spring-boot-starter-parent%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

List item for chat from Array inside array React Native

Thiostrepton

Caerphilly