Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d1b3764

Browse files
committed
添加zx解码
1 parent 92781cf commit d1b3764

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

‎order/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
<groupId>io.springfox</groupId>
3030
<artifactId>springfox-swagger-ui</artifactId>
3131
</dependency>
32+
<dependency>
33+
<groupId>com.google.zxing</groupId>
34+
<artifactId>core</artifactId>
35+
<version>3.4.0</version>
36+
</dependency>
37+
3238
<dependency>
3339
<groupId>com.github.xiaoymin</groupId>
3440
<artifactId>swagger-bootstrap-ui</artifactId>

‎order/src/main/java/info/xiaomo/order/OrderMain.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
import org.springframework.boot.autoconfigure.domain.EntityScan;
77
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
88
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
9-
import org.springframework.cache.annotation.EnableCaching;
109
import org.springframework.context.annotation.Bean;
1110
import org.springframework.context.annotation.ComponentScan;
1211
import org.springframework.context.annotation.Configuration;
13-
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
1412
import org.springframework.stereotype.Controller;
15-
import org.springframework.transaction.annotation.EnableTransactionManagement;
1613
import org.springframework.web.bind.annotation.RequestMapping;
1714
import org.springframework.web.bind.annotation.RequestMethod;
1815
import org.springframework.web.servlet.ModelAndView;
@@ -42,17 +39,12 @@ public static void main(String[] args) {
4239
SpringApplication.run(OrderMain.class, args);
4340
}
4441

45-
@RequestMapping(value = "/", method = RequestMethod.GET)
46-
public String index() {
47-
return "swagger-ui.html";
48-
}
49-
5042
/**
5143
* 接口
5244
*
5345
* @return 接口
5446
*/
55-
@RequestMapping(value = "/api", method = RequestMethod.GET)
47+
@RequestMapping(value = "/", method = RequestMethod.GET)
5648
@ApiIgnore()
5749
@ApiOperation(value = "重定向到api首页")
5850
public ModelAndView api() {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /