change package name and main class's name

This commit is contained in:
sharifi 2020-10-09 11:48:10 +03:30
parent da6fb652fb
commit 5cb3bc85be
6 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.demo;
package com.baeldung.dispatchservlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@ -6,10 +6,10 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Configuration;
@SpringBootApplication
public class DemoApplication {
public class DispatchServletApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
SpringApplication.run(DispatchServletApplication.class, args);
}
}

View File

@ -1,7 +1,7 @@
package com.baeldung.demo.conf;
package com.baeldung.dispatchservlet.conf;
import com.baeldung.demo.listener.CustomListener;
import com.baeldung.demo.servlet.CustomServlet;
import com.baeldung.dispatchservlet.listener.CustomListener;
import com.baeldung.dispatchservlet.servlet.CustomServlet;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;

View File

@ -1,4 +1,4 @@
package com.baeldung.demo.controller;
package com.baeldung.dispatchservlet.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@ -1,4 +1,4 @@
package com.baeldung.demo.filter;
package com.baeldung.dispatchservlet.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.baeldung.demo.listener;
package com.baeldung.dispatchservlet.listener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,6 +1,6 @@
package com.baeldung.demo.servlet;
package com.baeldung.dispatchservlet.servlet;
import com.baeldung.demo.filter.CustomFilter;
import com.baeldung.dispatchservlet.filter.CustomFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;