lxw
2022-05-16 7bf8e29a05ae358d01ba446aed5c94bc1cc025f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.whyc;
 
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
 
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableWebMvc
public class App extends WebMvcConfigurerAdapter implements WebMvcConfigurer {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}