Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
warehouse-management
Commits
57efa5a0
Commit
57efa5a0
authored
May 12, 2021
by
Philippe Fonzin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix merge conflicts
parent
0b432aa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
pom.xml
pom.xml
+10
-11
WarehouseApplication.java
...om/ascendfinalproject/warehouse/WarehouseApplication.java
+10
-10
No files found.
pom.xml
View file @
57efa5a0
...
...
@@ -93,17 +93,16 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-validation
</artifactId>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.7.0
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.7.0
</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger2</artifactId>-->
<!-- <version>2.7.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger-ui</artifactId>-->
<!-- <version>2.7.0</version>-->
<!-- </dependency>-->
</dependencies>
...
...
src/main/java/com/ascendfinalproject/warehouse/WarehouseApplication.java
View file @
57efa5a0
...
...
@@ -3,24 +3,24 @@ package com.ascendfinalproject.warehouse;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.context.annotation.Bean
;
import
springfox.documentation.builders.RequestHandlerSelectors
;
import
springfox.documentation.spi.DocumentationType
;
import
springfox.documentation.spring.web.plugins.Docket
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
//
import springfox.documentation.builders.RequestHandlerSelectors;
//
import springfox.documentation.spi.DocumentationType;
//
import springfox.documentation.spring.web.plugins.Docket;
//
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@EnableSwagger2
//
@EnableSwagger2
public
class
WarehouseApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
WarehouseApplication
.
class
,
args
);
}
@Bean
public
Docket
productApi
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
).
select
()
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.ascendfinalproject.warehouse"
)).
build
();
}
//
@Bean
//
public Docket productApi() {
//
return new Docket(DocumentationType.SWAGGER_2).select()
//
.apis(RequestHandlerSelectors.basePackage("com.ascendfinalproject.warehouse")).build();
//
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment