Skip to content

Commit

Permalink
chore: 운영 환경 스웨거 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
tfer2442 committed Sep 8, 2024
1 parent c1528db commit e74e8a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/haedal/haedalweb/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
@Configuration
public class SwaggerConfig {
private static final String BEARER_TOKEN_PREFIX = "Bearer";

@Value("${swagger.enabled}")
private boolean swaggerEnabled;
private static boolean swaggerEnabled = false;

@Bean
public OpenAPI openAPI() {
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
spring.profiles.include=db, jwt, aws
swagger.enabled=false
spring.profiles.include=db, jwt, aws

0 comments on commit e74e8a6

Please sign in to comment.