diff --git a/appservice/java-springboot-github-actions/README.md b/appservice/java-springboot-github-actions/README.md new file mode 100644 index 00000000..c1d88d98 --- /dev/null +++ b/appservice/java-springboot-github-actions/README.md @@ -0,0 +1,75 @@ + +# Deploy a Spring Boot Application using Github Actions + +## Prerequisites + +This example assumes you have previously completed the following examples: + +1. [Create an Azure Resource Group](../../group/create/README.md) +1. [Create an Azure App Service Plan](../create-plan/README.md) + +After that, follow the below steps + +1. Click on Resource groups as in the below image + +Resource group - It is a container that holds the resources for any Azure solution and is a prerequisite for creating anything on Azure. +![Resource Group](images/ResourceGroup.png) + +Click on create and provide a resource-group and then it would be created. +2. Now, click on App Services -> Create -> Web App + + 1. Provide the web app name, java version (17/21), operating system (Windows/Linux), region (US/India) etc. + + 2. Then click on "Review+Create" at the bottom. + + This is how the newly created app service would look like + +![App Service](images/AppService.png) + + +3. Create a Spring Boot application with help of https://start.spring.io + + +4. Then create a rest controller like below + +``` + @RestController + public class SpringAzureApplication { + + @GetMapping("/message") + public String message(){ + return "Azure deployment is working"; + } +} +``` +5. Execute the below git commands and push local code to github branch +``` +git remote add origin (repository url indicates the newly created github repository) + +git add . (to add all the changes done in local) + +git commit -m "First commit" (does the commit with a message) + +git push -u origin master (push all the changes to github repository) +``` +6. Click on Deployment centre + ![Deployment Centre](images/DeploymentCentre.png) + + +- In the source dropdown, select Github and Authorise which would ask for the username and password. + +- After that, select the organization, repository, branch as well in the dropdown. + +- You can click on the "Preview file" to see what steps would be performed as part of the build and deploy process + +![Preview File](images/PreviewFile.png) + +7. Click on save + + +8. The build will start & complete after which the deployment will start and succeed. + + +9. Users can test the application with the help of URL (will be present in Github Actions tab) which would look something like http://spring-azure-demo.azurewebsites.net and need to append "message" at the end because that was defined in the RestController. + + - Upon successful hit of the URL, should get a message like "Azure deployment is working" which was given in the GetMapping method. diff --git a/appservice/java-springboot-github-actions/images/AppService.png b/appservice/java-springboot-github-actions/images/AppService.png new file mode 100644 index 00000000..dcdf53ac Binary files /dev/null and b/appservice/java-springboot-github-actions/images/AppService.png differ diff --git a/appservice/java-springboot-github-actions/images/DeploymentCentre.png b/appservice/java-springboot-github-actions/images/DeploymentCentre.png new file mode 100644 index 00000000..6783ff18 Binary files /dev/null and b/appservice/java-springboot-github-actions/images/DeploymentCentre.png differ diff --git a/appservice/java-springboot-github-actions/images/PreviewFile.png b/appservice/java-springboot-github-actions/images/PreviewFile.png new file mode 100644 index 00000000..00c431e4 Binary files /dev/null and b/appservice/java-springboot-github-actions/images/PreviewFile.png differ diff --git a/appservice/java-springboot-github-actions/images/ResourceGroup.png b/appservice/java-springboot-github-actions/images/ResourceGroup.png new file mode 100644 index 00000000..f1359b21 Binary files /dev/null and b/appservice/java-springboot-github-actions/images/ResourceGroup.png differ diff --git a/appservice/java-springboot-github-actions/pom.xml b/appservice/java-springboot-github-actions/pom.xml new file mode 100644 index 00000000..532db56e --- /dev/null +++ b/appservice/java-springboot-github-actions/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.2.3 + + + com.learning + SpringBoot + 0.0.1-SNAPSHOT + SpringBoot + Demo project for Spring Boot + + 17 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/appservice/java-springboot-github-actions/src/main/java/com/product/ProductApplication.java b/appservice/java-springboot-github-actions/src/main/java/com/product/ProductApplication.java new file mode 100644 index 00000000..1614dac4 --- /dev/null +++ b/appservice/java-springboot-github-actions/src/main/java/com/product/ProductApplication.java @@ -0,0 +1,13 @@ +package com.product; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ProductApplication { + + public static void main(String[] args) { + SpringApplication.run(ProductApplication.class, args); + } + +} diff --git a/appservice/java-springboot-github-actions/src/main/java/com/product/ProductController.java b/appservice/java-springboot-github-actions/src/main/java/com/product/ProductController.java new file mode 100644 index 00000000..62b8b40e --- /dev/null +++ b/appservice/java-springboot-github-actions/src/main/java/com/product/ProductController.java @@ -0,0 +1,14 @@ +package com.product; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class ProductController { + + @GetMapping("/message") + public String message() { + return "Azure deployment is working"; + } + +} diff --git a/spring/spring-cloud-config-server/README.md b/spring/spring-cloud-config-server/README.md new file mode 100644 index 00000000..6bca9d6e --- /dev/null +++ b/spring/spring-cloud-config-server/README.md @@ -0,0 +1,174 @@ +# Setting Up Azure Spring Cloud Config Server for Centralized Configuration in Spring Boot + +## Prerequisites + +This example assumes you have previously completed the following examples: + +[Create an Azure Resource Group](https://github.com/Azure-Samples/java-on-azure-examples/blob/main/group/create/README.md) +[Create an Azure Spring Apps environment](https://github.com/Azure-Samples/java-on-azure-examples/blob/main/spring/create/README.md) + +## Create an Azure Spring Cloud Config Server +This guide demonstrates how to set up an Azure Spring Cloud Config Server for managing application configurations across multiple Spring Boot services. We'll use a Git repository for storing configuration files and build a simple Customer service with a Controller, Service, and Repository layer. + +1. Create Configuration in a Git Repository + +* Create a Git repository (e.g., spring-config-repo) to store configurations. +* Add application.yml for shared configuration and application-dev.yml for environment-specific values. + +## Create a Spring Boot Application + +1. On the other side, create a Spring Boot application with help of https://start.spring.io + +2. Open the project in the IDE and then create the below classes + +i. An application yaml file + +``` +spring: +application: +name: customer-service +datasource: +url: jdbc:mysql://localhost:3306/customerdb +username: ${DB_USER} +password: ${DB_PASS}` +``` + +ii. Application dev yaml file +spring: +datasource: +url: jdbc:mysql://dev-db-server:3306/customerdb +username: ${DB_USER_DEV} +password: ${DB_PASS_DEV} +cloud: +config: +uri: https:// +label: main +enabled: true + +**Note: Sensitive data like database credentials should be securely stored in Azure Key Vault** + +3. Add the below dependencies (pom.xml) + +``` + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.cloud + spring-cloud-starter-config + + + com.microsoft.azure + azure-spring-cloud-dependencies + 2.1.1 + ` +``` + +4. Configuration (application.properties in Spring Boot app) + +``` +spring.application.name=customer-service +spring.profiles.active=dev` +``` + +5. Create Model, Repository, Service, and Controller + +``` +@Entity +public class Customer { +@Id +@GeneratedValue +private Long id; +private String name; +private String email; +// Getters and setters +} +``` + +``` +public interface CustomerRepository extends JpaRepository { +} +``` + + +``` +@Service +public class CustomerService { + @Autowired + private CustomerRepository repository; + + public List getAllCustomers() { + return repository.findAll(); + } +} +``` + +``` +@RestController +@RequestMapping("/api/customers") +public class CustomerController { + @Autowired + private CustomerService service; + + @GetMapping + public List getCustomers() { + return service.getAllCustomers(); + } +} +``` + +6. Configure Azure Spring Cloud with the Config Server + +Set up the Config Server to use your Git repository as a configuration source: + +``` +az spring-cloud config-server set \ + --name \ + --config-file application-dev.yml \ + --resource-group +``` +7. Connect Spring Boot to Config Server + +The Spring Boot application will use Azure Spring Cloud Config Server to retrieve configuration properties automatically. + +## Testing and Deployment +### Testing the Endpoint + +After deploying the application, verify it with the following tools and methods: + +1. Using cURL, run the following command to test the /api/customers endpoint: +``` +curl -X GET http:///api/customers +``` +2. Using Insomnia/Postman +* Open Insomnia or Postman and create a new GET request. +* Set the URL to http:///api/customers. +* Send the request and check for a JSON response containing customer data. + +3. Using Browser +* Navigate to http:///api/customers in a web browser. The JSON response should be displayed if the API is accessible. + +4. Refreshing Configuration +* For real-time configuration updates, you can refresh the Spring Boot application properties without restarting the app. Enable the Spring Boot Actuator refresh endpoint in application.properties: + +``` +management.endpoints.web.exposure.include=refresh +``` + +Trigger the refresh by calling the actuator endpoint: +``` +curl -X POST http:///actuator/refresh +``` +This command reloads the configuration from the Config Server, applying any updates in the Git repository to the running application. + + +Cleanup +* To avoid ongoing charges, delete the resources once you are done: +``` +az group delete --name +``` diff --git a/spring/spring-cloud-config-server/pom.xml b/spring/spring-cloud-config-server/pom.xml new file mode 100644 index 00000000..6635bbe6 --- /dev/null +++ b/spring/spring-cloud-config-server/pom.xml @@ -0,0 +1,49 @@ + + 4.0.0 + + com.example + spring-cloud-config-example + 1.0.0 + jar + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.cloud + spring-cloud-starter-config + + + com.microsoft.azure + azure-spring-cloud-dependencies + 2.1.1 + import + pom + + + org.springframework.boot + spring-boot-starter-actuator + + + com.h2database + h2 + runtime + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/spring/spring-cloud-config-server/src/main/java/customer/CustomerServiceApplication.java b/spring/spring-cloud-config-server/src/main/java/customer/CustomerServiceApplication.java new file mode 100644 index 00000000..616f0499 --- /dev/null +++ b/spring/spring-cloud-config-server/src/main/java/customer/CustomerServiceApplication.java @@ -0,0 +1,11 @@ +package customer; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class CustomerServiceApplication { + public static void main(String[] args) { + SpringApplication.run(CustomerServiceApplication.class, args); + } +} diff --git a/spring/spring-cloud-config-server/src/main/java/customer/controller/CustomerController.java b/spring/spring-cloud-config-server/src/main/java/customer/controller/CustomerController.java new file mode 100644 index 00000000..f6f1c491 --- /dev/null +++ b/spring/spring-cloud-config-server/src/main/java/customer/controller/CustomerController.java @@ -0,0 +1,36 @@ +package customer.controller; + +import customer.entity.Customer; +import customer.service.CustomerService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +@RestController +@RequestMapping("/api/customers") +public class CustomerController { + + @Autowired + private CustomerService service; + + @GetMapping + public List getAllCustomers() { + return service.getAllCustomers(); + } + + @PostMapping + public Customer createCustomer(@RequestBody Customer customer) { + return service.saveCustomer(customer); + } + + @GetMapping("/{id}") + public Customer getCustomerById(@PathVariable Long id) { + return service.getCustomerById(id); + } + + @DeleteMapping("/{id}") + public void deleteCustomer(@PathVariable Long id) { + service.deleteCustomer(id); + } +} diff --git a/spring/spring-cloud-config-server/src/main/java/customer/entity/Customer.java b/spring/spring-cloud-config-server/src/main/java/customer/entity/Customer.java new file mode 100644 index 00000000..fb1e5416 --- /dev/null +++ b/spring/spring-cloud-config-server/src/main/java/customer/entity/Customer.java @@ -0,0 +1,41 @@ +package customer.entity; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; + +@Entity +public class Customer { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + private String name; + private String email; + + // Getters and Setters + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } +} diff --git a/spring/spring-cloud-config-server/src/main/java/customer/repository/CustomerRepository.java b/spring/spring-cloud-config-server/src/main/java/customer/repository/CustomerRepository.java new file mode 100644 index 00000000..b4298b62 --- /dev/null +++ b/spring/spring-cloud-config-server/src/main/java/customer/repository/CustomerRepository.java @@ -0,0 +1,7 @@ +package customer.repository; + +import customer.entity.Customer; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface CustomerRepository extends JpaRepository { +} diff --git a/spring/spring-cloud-config-server/src/main/java/customer/service/CustomerService.java b/spring/spring-cloud-config-server/src/main/java/customer/service/CustomerService.java new file mode 100644 index 00000000..8e9d5da6 --- /dev/null +++ b/spring/spring-cloud-config-server/src/main/java/customer/service/CustomerService.java @@ -0,0 +1,31 @@ +package customer.service; + +import customer.entity.Customer; +import customer.repository.CustomerRepository; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class CustomerService { + + @Autowired + private CustomerRepository repository; + + public List getAllCustomers() { + return repository.findAll(); + } + + public Customer saveCustomer(Customer customer) { + return repository.save(customer); + } + + public Customer getCustomerById(Long id) { + return repository.findById(id).orElse(null); + } + + public void deleteCustomer(Long id) { + repository.deleteById(id); + } +} diff --git a/sql/deploy-springboot-sql/README.md b/sql/deploy-springboot-sql/README.md new file mode 100644 index 00000000..1d636839 --- /dev/null +++ b/sql/deploy-springboot-sql/README.md @@ -0,0 +1,223 @@ + +# Build a SpringBoot Application using Azure SQL and Deploy into Azure + +## Prerequisites + +This example assumes you have previously completed the following examples: + +1. [Create an Azure Resource Group](../../group/create/README.md) +1. [Create an Azure SQL Database](../create/README.md) + +## Create an Azure SQL DB + +This example will create a Spring Boot application which has a couple of endpoints for creating and retrieving employee details. + +1. In the Azure Portal, search for SQL database + + +2. Click on SQL Database and in the Create SQL Database page + + i. Provide a unique DB name + + ii. Under Server, click new upon which a new page will pop up called as Create SQL Database Server + + iii. Provide a unique Server name and select the location in the dropdown (eg -> (US) East US) + + iv. Under the Authentication -> Authentication method, choose Use SQL authentication (could be Use Microsoft Entra-only authentication as well) + + v. In case of sql authentication, provide below details + + 1. Server admin login + + 2. Password + + +3. Leave the other options as such and choose Development as the workload environment + + +4. Go to the networking tab + + +5. Under the network connectivity, select Connectivity method as Public endpoint + + +6. In the firewall rules, Choose "yes" for Allow Azure services and resources to access this server and +Add current client IP address + + +7. Then click on review and create + + +8. This will create a database instance and will get a message "Deployment is completed" +and there would be a button "Go to resource". Upon clicking on that, it will show the sql instance + + +9. In that, copy the Connection strings (JDBC) and put in application.yml file + + +10. Provide the username and password (given in the SQL authentication page) in yml file + + +11. Then go to Set Server Firewall in the SQL instance page and then click on "Add your clinet IPV4 address" + + +12. Click on Query editor (preview) in the SQL instance page + + +13. Enter the username and password (provided as part of sql authentication step in the SQL Server Page) + + +## Create a Spring Boot Application + +1. On the other side, create a Spring Boot application with help of https://start.spring.io + + +2. Open the project in the IDE and then create the below classes + + i. An Employee entity class + +``` +@Entity +@Table +@Data +@AllArgsConstructor +@NoArgsConstructor +public class Employee { + @Id + @GeneratedValue + private int id; + private String name; + private String department; + private long salary; +} +``` + +ii. An Employee repository class for the DB connection + +``` +@Repository +public interface EmployeeRepository extends JpaRepository { +} +``` + +iii. A Rest Controller with endpoints to create and retrieve an employee object + +``` +@SpringBootApplication +@RestController +public class SqlApplication { + + @Autowired + private EmployeeRepository repository; + + @PostMapping("/employee") + public Employee createEmployee(@RequestBody Employee employee) { + return repository.save(employee); + } + + @GetMapping("/employees") + public List retrieveEmployees() { + return repository.findAll(); + } + + public static void main(String[] args) { + SpringApplication.run(SqlApplication.class, args); + } + +} +``` +iv. An application.yml file with below properties + +``` +spring: + datasource: + url: + username: + password: + jpa: + show-sql: true + hibernate: + ddl-auto: update + dialect : org.hibernate.dialect.SQLServer2012Dialect + +server: + port: 8080 +``` + +3. Start the application in the code editor + + +4. Then head over to postman client to test the endpoints + + +5. Select the post request and hit the URL : http://localhost:8080/employee +and provide a sample json as below in the request body + +``` +{ +"name":"Shiva", +"department":"Chemical", +"salary":25000 +} +``` + +6. If we refresh the Query editor now in Azure SQL DB, dbo.employee table should be listed under the Tables + + +7. Then enter the query as +select * from employee would fetch all the employees that were created as part of the postman requests. + +Follow the below steps to create an Azure App Service and deploy the Spring Boot application, + +1. Click on Resource groups as in the below image + +Resource group - It is a container that holds the resources for any Azure solution and is a prerequisite for creating anything on Azure. + +![Resource Group](images/ResourceGroup.png) + +Click on create and provide a resource-group and then it would be created. +2. Now, click on App Services -> Create -> Web App + + 1. Provide the web app name, java version (17/21), operating system (Windows/Linux), region (US/India) etc. + + 2. Then click on "Review+Create" at the bottom. + + This is how the newly created app service would look like + +![App Service](images/AppService.png) + +3. Execute the below git commands and push local code to github branch +``` +git remote add origin (repository url indicates the newly created github repository) + +git add . (to add all the changes done in local) + +git commit -m "First commit" (does the commit with a message) + +git push -u origin master (push all the changes to github repository) +``` + +4. Click on Deployment centre as like in the below image +![Deployment Centre](images/DeploymentCentre.png) + +- In the source dropdown, select Github and Authorise which would ask for the username and password. + +- After that, select the organization, repository, branch as well in the dropdown. + +- You can click on the "Preview file" to see what steps would be performed as part of the build and deploy process + ![Preview File](images/PreviewFile.png) + +5. Click on save + + +6. The build will start & complete after which the deployment will start and succeed. + + +Get the URL (should look something like https://springboot-azuresql.azurewebsites.net/employees) from azure app service and append "employees" at the end +to see the list of employees that were created earlier. + + +## Cleanup + +Do NOT forget to remove the resources once you have completed the entire flow. + diff --git a/sql/deploy-springboot-sql/images/AppService.png b/sql/deploy-springboot-sql/images/AppService.png new file mode 100644 index 00000000..dcdf53ac Binary files /dev/null and b/sql/deploy-springboot-sql/images/AppService.png differ diff --git a/sql/deploy-springboot-sql/images/DeploymentCentre.png b/sql/deploy-springboot-sql/images/DeploymentCentre.png new file mode 100644 index 00000000..6783ff18 Binary files /dev/null and b/sql/deploy-springboot-sql/images/DeploymentCentre.png differ diff --git a/sql/deploy-springboot-sql/images/PreviewFile.png b/sql/deploy-springboot-sql/images/PreviewFile.png new file mode 100644 index 00000000..00c431e4 Binary files /dev/null and b/sql/deploy-springboot-sql/images/PreviewFile.png differ diff --git a/sql/deploy-springboot-sql/images/ResourceGroup.png b/sql/deploy-springboot-sql/images/ResourceGroup.png new file mode 100644 index 00000000..f1359b21 Binary files /dev/null and b/sql/deploy-springboot-sql/images/ResourceGroup.png differ diff --git a/sql/deploy-springboot-sql/pom.xml b/sql/deploy-springboot-sql/pom.xml new file mode 100644 index 00000000..e9b3a0d5 --- /dev/null +++ b/sql/deploy-springboot-sql/pom.xml @@ -0,0 +1,63 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.2.4 + + + com.azure + sql + 0.0.1-SNAPSHOT + sql + Azure SQL project with Spring Boot + + 17 + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.boot + spring-boot-starter-web + + + + com.microsoft.sqlserver + mssql-jdbc + runtime + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/sql/deploy-springboot-sql/src/main/java/com/azure/sql/Employee.java b/sql/deploy-springboot-sql/src/main/java/com/azure/sql/Employee.java new file mode 100644 index 00000000..b14fec6f --- /dev/null +++ b/sql/deploy-springboot-sql/src/main/java/com/azure/sql/Employee.java @@ -0,0 +1,23 @@ +package com.azure.sql; + +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Entity +@Table +@Data +@AllArgsConstructor +@NoArgsConstructor +public class Employee { + @Id + @GeneratedValue + private int id; + private String name; + private String department; + private long salary; +} diff --git a/sql/deploy-springboot-sql/src/main/java/com/azure/sql/EmployeeRepository.java b/sql/deploy-springboot-sql/src/main/java/com/azure/sql/EmployeeRepository.java new file mode 100644 index 00000000..10f002ee --- /dev/null +++ b/sql/deploy-springboot-sql/src/main/java/com/azure/sql/EmployeeRepository.java @@ -0,0 +1,8 @@ +package com.azure.sql; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; + +@Repository +public interface EmployeeRepository extends JpaRepository { +} diff --git a/sql/deploy-springboot-sql/src/main/java/com/azure/sql/SqlApplication.java b/sql/deploy-springboot-sql/src/main/java/com/azure/sql/SqlApplication.java new file mode 100644 index 00000000..72894264 --- /dev/null +++ b/sql/deploy-springboot-sql/src/main/java/com/azure/sql/SqlApplication.java @@ -0,0 +1,35 @@ +package com.azure.sql; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@SpringBootApplication +@RestController +public class SqlApplication { + + @Autowired + private EmployeeRepository repository; + + @PostMapping("/employee") + public Employee createEmployee(@RequestBody Employee employee) { + return repository.save(employee); + } + + @GetMapping("/employees") + public List retrieveEmployees() { + return repository.findAll(); + } + + + public static void main(String[] args) { + SpringApplication.run(SqlApplication.class, args); + } + +} diff --git a/sql/deploy-springboot-sql/src/main/resources/application.properties b/sql/deploy-springboot-sql/src/main/resources/application.properties new file mode 100644 index 00000000..e69de29b diff --git a/sql/deploy-springboot-sql/src/main/resources/application.yml b/sql/deploy-springboot-sql/src/main/resources/application.yml new file mode 100644 index 00000000..a6e4ae80 --- /dev/null +++ b/sql/deploy-springboot-sql/src/main/resources/application.yml @@ -0,0 +1,13 @@ +spring: + datasource: + url: + username: + password: + jpa: + show-sql: + hibernate: + ddl-auto: + dialect : + +server: + port: