[kotlin][spring] Remove EOL from template (#16045)

* remove EOL from template

* better code format
This commit is contained in:
William Cheng 2023-07-10 11:44:29 +08:00 committed by GitHub
parent 75067b2581
commit 852eb956db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 28 additions and 37 deletions

View File

@ -11,7 +11,6 @@ import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.security.SecurityScheme
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Configuration
class SpringDocConfiguration {

View File

@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
import java.util.Optional
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Controller
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
class PetApiController(

View File

@ -15,7 +15,6 @@ import java.util.Optional
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
*/
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
interface PetApiDelegate {
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()

View File

@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
import java.util.Optional
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Controller
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
class StoreApiController(

View File

@ -14,7 +14,6 @@ import java.util.Optional
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
*/
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
interface StoreApiDelegate {
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()

View File

@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
import java.util.Optional
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Controller
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
class UserApiController(

View File

@ -14,7 +14,6 @@ import java.util.Optional
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
*/
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
interface UserApiDelegate {
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()

View File

@ -11,7 +11,6 @@ import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.security.SecurityScheme
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Configuration
class SpringDocConfiguration {

View File

@ -17,7 +17,6 @@ import javax.servlet.ServletContext
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
@Configuration
@EnableSwagger2
class SpringFoxConfiguration {