|
6 | 6 | import org.springframework.boot.autoconfigure.domain.EntityScan;
|
7 | 7 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
8 | 8 | import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
9 |
| -import org.springframework.cache.annotation.EnableCaching; |
10 | 9 | import org.springframework.context.annotation.Bean;
|
11 | 10 | import org.springframework.context.annotation.ComponentScan;
|
12 | 11 | import org.springframework.context.annotation.Configuration;
|
13 |
| -import org.springframework.data.jpa.repository.config.EnableJpaRepositories; |
14 | 12 | import org.springframework.stereotype.Controller;
|
15 |
| -import org.springframework.transaction.annotation.EnableTransactionManagement; |
16 | 13 | import org.springframework.web.bind.annotation.RequestMapping;
|
17 | 14 | import org.springframework.web.bind.annotation.RequestMethod;
|
18 | 15 | import org.springframework.web.servlet.ModelAndView;
|
@@ -42,17 +39,12 @@ public static void main(String[] args) {
|
42 | 39 | SpringApplication.run(OrderMain.class, args);
|
43 | 40 | }
|
44 | 41 |
|
45 |
| - @RequestMapping(value = "/", method = RequestMethod.GET) |
46 |
| - public String index() { |
47 |
| - return "swagger-ui.html"; |
48 |
| - } |
49 |
| - |
50 | 42 | /**
|
51 | 43 | * 接口
|
52 | 44 | *
|
53 | 45 | * @return 接口
|
54 | 46 | */
|
55 |
| - @RequestMapping(value = "/api", method = RequestMethod.GET) |
| 47 | + @RequestMapping(value = "/", method = RequestMethod.GET) |
56 | 48 | @ApiIgnore()
|
57 | 49 | @ApiOperation(value = "重定向到api首页")
|
58 | 50 | public ModelAndView api() {
|
|
0 commit comments