intercepting all requests and checking token for validity /commented out for now for easier testing/

This commit is contained in:
Marcin Michałek committed 2015-01-25 11:06:08 +01:00
1 parent 81bb6c2961
commit 07c11d6c3b
3 files changed
+76 -44

No files matched your search

+2 -5
View File
@@ -1,11 +1,9 @@
package hello;
import hello.agh.edu.bazy.postgresql.gis.GisDataSource;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
@@ -18,7 +16,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
/*
@ImportResource("classpath:/database-blueprint1.xml")
*/
public class Application extends WebMvcConfigurerAdapter implements CommandLineRunner{
public class Application extends WebMvcConfigurerAdapter implements CommandLineRunner {
public static void main(String[] args) {
@@ -34,10 +32,9 @@ public class Application extends WebMvcConfigurerAdapter implements CommandLineR
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new SampleInterceptor()).addPathPatterns("/**");
registry.addInterceptor(new RequestInterceptor()).addPathPatterns("/**");
}
/*
@Bean(name = "gisosmDataSource")
public GisDataSource dataSource() {