Skip to content

Commit

Permalink
indentation, title config, swagger properties
Browse files Browse the repository at this point in the history
indentation, title config, swagger properties
  • Loading branch information
baiyina committed Jul 30, 2024
1 parent 0c74ecf commit eb8eacc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
import org.springframework.context.annotation.Configuration;



@Configuration
public class SwaggerConfig {
@Bean

@Bean
public OpenAPI createRestApi() {
return new OpenAPI()
.info(apiInfo());
}

private Info apiInfo() {
return new Info()
.title("sbc order api")
.description("sbc order api")
.title("cim client")
.description("cim client api")
.termsOfService("http://crossoverJie.top")
.contact(contact())
.version("1.0.0");
Expand Down
4 changes: 3 additions & 1 deletion cim-client/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ server.port=8082

logging.level.root=error

# enable swagger
springdoc.swagger-ui.enabled = true

# log path
cim.msg.logger.path = /opt/logs/cim/


# route url suggested that this is Nginx address
cim.route.url = http://localhost:8083

Expand Down
2 changes: 2 additions & 0 deletions cim-forward-route/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ server.port=8083

logging.level.root=info

# enable swagger
springdoc.swagger-ui.enabled = true


app.zk.addr=127.0.0.1:2181
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public OpenAPI createRestApi() {

private Info apiInfo() {
return new Info()
.title("sbc order api")
.description("sbc order api")
.title("cim server")
.description("cim server api")
.termsOfService("http://crossoverJie.top")
.contact(contact())
.version("1.0.0");
Expand Down
4 changes: 2 additions & 2 deletions cim-server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ spring.application.name=cim-server
# web port
server.port=8081

# enable swagger
springdoc.swagger-ui.enabled = true

# cim ?????
cim.server.port=11211

logging.level.root=info



# enable zk
app.zk.switch=true

Expand Down

0 comments on commit eb8eacc

Please sign in to comment.