Updated and upgraded deps and config the props for openapi docs and modified for spring web modules
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,10 +12,13 @@ import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import io.swagger.v3.oas.annotations.OpenAPIDefinition
|
||||
import io.swagger.v3.oas.annotations.servers.Server
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||
|
||||
//import org.springdoc.core.SpringDocUtils
|
||||
//import org.springdoc.core.converters.models.Pageable
|
||||
//import javax.servlet.http.HttpServletRequest
|
||||
|
||||
@ConditionalOnProperty(name = ["springdoc.api-docs.enabled"], havingValue = "true")
|
||||
@Configuration
|
||||
@SecurityScheme(
|
||||
name = "bearerAuth",
|
||||
|
||||
@@ -2,5 +2,5 @@ package com.cubetiqs.web.modules.uploader
|
||||
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||
|
||||
@ConditionalOnProperty(name = ["module.uploader.enabled", "spring.datasource.enabled"], havingValue = "true")
|
||||
@ConditionalOnProperty(name = ["modules.uploader.enabled", "spring.datasource.enabled"], havingValue = "true")
|
||||
annotation class UploaderModule
|
||||
@@ -2,5 +2,5 @@ package com.cubetiqs.web.modules.user
|
||||
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
|
||||
|
||||
@ConditionalOnProperty(name = ["module.user.enabled", "spring.datasource.enabled"], havingValue = "true")
|
||||
@ConditionalOnProperty(name = ["modules.user.enabled", "spring.datasource.enabled"], havingValue = "true")
|
||||
annotation class UserModule
|
||||
@@ -0,0 +1 @@
|
||||
# Custom props with dev's profile
|
||||
@@ -28,8 +28,12 @@ spring:
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: ${JPA_HIBERNATE_DDL_AUTO:update}
|
||||
|
||||
module:
|
||||
open-in-view: ${JPA_OPEN_IN_VIEW:false}
|
||||
data:
|
||||
redis:
|
||||
repositories:
|
||||
enabled: ${DATA_REDIS_REPOSITORIES_ENABLED:false}
|
||||
modules:
|
||||
user:
|
||||
enabled: ${MODULE_USER_ENABLED:true}
|
||||
uploader:
|
||||
@@ -50,6 +54,6 @@ logging:
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
enabled: ${API_DOCS_ENABLED:true}
|
||||
swagger-ui:
|
||||
path: /swagger-ui
|
||||
|
||||
Reference in New Issue
Block a user