-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/main/java/PayhubApplication.java → .../pagopa/template/TemplateApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package it.gov.pagopa.template; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class PayhubApplication { | ||
public class TemplateApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(PayhubApplication.class, args); | ||
SpringApplication.run(TemplateApplication.class, args); | ||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/it/gov/pagopa/template/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package it.gov.pagopa.template.config; | ||
|
||
import io.swagger.v3.oas.models.Components; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* The Class SwaggerConfig. | ||
*/ | ||
@Configuration | ||
public class SwaggerConfig { | ||
|
||
/** The title. */ | ||
@Value("${swagger.title:${spring.application.name}}") | ||
private String title; | ||
|
||
/** The description. */ | ||
@Value("${swagger.description:Api and Models}") | ||
private String description; | ||
|
||
/** The version. */ | ||
@Value("${swagger.version:${spring.application.version}}") | ||
private String version; | ||
|
||
@Bean | ||
public OpenAPI customOpenAPI() { | ||
return new OpenAPI().components(new Components()).info(new Info() | ||
.title(title) | ||
.description(description) | ||
.version(version)); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/utils/Calculator.java → ...gov/pagopa/template/utils/Calculator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package utils; | ||
package it.gov.pagopa.template.utils; | ||
|
||
public class Calculator { | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
src/test/java/utils/CalculatorTest.java → ...pagopa/template/utils/CalculatorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters