diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 443fd7e3d6a1de6aeb65839fd16e71dffaf4a86d..b8bac5661d5c3fe118281a684854cf403007b430 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -6,6 +6,7 @@ <sourceOutputDir name="target/generated-sources/annotations" /> <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> <outputRelativeToContentRoot value="true" /> + <module name="demo" /> </profile> </annotationProcessing> <bytecodeTargetLevel> @@ -15,6 +16,7 @@ <component name="JavacSettings"> <option name="ADDITIONAL_OPTIONS_OVERRIDE"> <module name="back-skeleton" options="-parameters" /> + <module name="demo" options="-parameters" /> </option> </component> </project> \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml index ad0f0fdb8cb8a12cb66c28529938b01bcc7098e2..011943d6a313eef335c129d862398a1bbcc1b701 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -2,5 +2,6 @@ <project version="4"> <component name="Encoding"> <file url="file://$PROJECT_DIR$/back-skeleton/src/main/java" charset="UTF-8" /> + <file url="file://$PROJECT_DIR$/webapp-hello-world/src/main/java" charset="UTF-8" /> </component> </project> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index b2eea277e84bef6438ad4959d8b6927d8e67f5c8..b110ad93a7c9448d99b7211aac7d850ae1931a62 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ExternalStorageConfigurationManager" enabled="true" /> - <component name="ProjectRootManager" version="2" default="true"> + <component name="MavenProjectsManager"> + <option name="originalFiles"> + <list> + <option value="$PROJECT_DIR$/webapp-hello-world/pom.xml" /> + </list> + </option> + </component> + <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK"> <output url="file://$PROJECT_DIR$/out" /> </component> </project> \ No newline at end of file diff --git a/HELP/GIT-CHEATSHEET.md b/HELP/GIT-CHEATSHEET.md new file mode 100644 index 0000000000000000000000000000000000000000..225327c27b9440ad58b6120bbf4d48388a006508 --- /dev/null +++ b/HELP/GIT-CHEATSHEET.md @@ -0,0 +1,86 @@ +# GIT CHEAT SHEET +Quelques informations pratiques pour la mise en place d'un projet de petite envergure avec git. + +## Démarrer un projet +Initialiser votre git en ouvrant une console à la racine de votre projet: +``` +> git init +``` +Si ce n'est pas déjà le cas, configurer votre clé ssh avec votre compte en ligne : [Clé SSH sur Gitlab](https://gitlab.com/-/profile/keys). + +Établir le lien entre votre dossier local et le repository que vous avez créé en ligne (récupérer l'**url** en cliquant sur "clone" sur GitLab): +``` +> git remote add origin <url> +``` +Créer votre première branche (qui sera la branche principale pour la suite du projet): +``` +> git checkout -b master +``` +Ajouter dans *.gitignore* les fichiers/dossiers qu'on ne veut pas pousser avec le projet. +Une fois fait, créer un premier commit qui englobe l'ensemble des sources sur la branche principale : +``` +> git commit -am "[CHORE] First commit" +``` +Pousser le commit tout juste créé tout en liant la branche locale à son équivalent sur le repository. +``` +> git push --set-upstream origin master +``` +Vérifier l'état du repository sur Gitlab. Les autres contributeurs pourront cloner le projet : +``` +> git clone <url> +``` + + +## Au quotidien +Toujours *pull* la dernière version de la branche principale avant d'en créer une nouvelle: +``` +> git checkout master +> git pull origin master +> git checkout -b ma-super-branche +``` +Toujours sauvegarder mes modifications dans un *commit* quand je finis une étape importante de mon développement ou que je dois fermer mon ordinateur: +``` +> git add . +> git commit -m "Une description de mon avancement" +> git push origin ma-super-branche +``` +Toujours *rebaser* ma branche sur la branche principale si des changements y ont été ajoutés depuis la dernière fois: +``` +> git checkout master +> git pull +> git checkout ma-super-branche +> git rebase master +``` +Et résoudre les conflits dans IntelliJ si besoin. + +## Pratique +Pour voir l'historique des derniers commits de la branche sur laquelle je suis: +``` +> git log +``` +Pour voir tous les fichiers modifiés depuis le dernier commit, ou carrément toutes les modifications: +``` +> git status +> git diff +``` +Pour récupérer les informations des nouvelles branches créées sur le repository: +``` +> git fetch origin +``` +Lorsque j'ai des modifications en attente que je ne veux pas commiter, je peux les ajouter à la pile des brouillons: +``` +> git stash +``` +Pour ajouter mes modifications au sein du dernier commit, plutôt que dans un nouveau: +``` +> git commit --amend +``` +Pour pousser ma branche après avoir modifié son historique (après un *rebase* ou un *amend* par exemple): +``` +> git push --force +``` +Lorsque je suis au bout de ma vie: +``` +> git --help +``` +N'oubliez pas de jeter un coup d'oeil à l'arbre git de votre repository, il contient toutes les informations dont vous avez besoin pour comprendre ce qu'il se passe ! diff --git a/HELP/Raccourcis-Intellij.md b/HELP/Raccourcis-Intellij.md new file mode 100644 index 0000000000000000000000000000000000000000..8e70ad15f2f1a0d9d38d570fcdb93563951afa63 --- /dev/null +++ b/HELP/Raccourcis-Intellij.md @@ -0,0 +1,34 @@ +Raccourcis IntelliJ par défaut Windows/Linux +==== + + +note : c'est globablement les mêmes sur Mac, remplacer juste `Ctrl` par `command` et `alt` par `control`. + + +Vous pouvez retrouver l'ensemble des raccourcis Intellij dans Preferences -> Keymap --> Editor Actions +C'est aussi ici que vous pouvez les modifier à votre sauce. + + ++ Selection multiple : `Ctrl + shift + MAJ + clique` + ++ Duplique la sélection : `Ctrl + D` + ++ Elargie la selection : `Ctrl + W` + ++ Selectionne les autres occurrences : `Ctrl + J ou Alt + J` + ++ Fast access (le graal) : `shift + shift` +—> Permet de chercher n’importe quel fichier ou fonctionnalité présente dans IntelliJ +(IntelliJ est en anglais donc il faut chercher en anglais les fonctionnalités) + ++ Recherche classique : `Ctrl + F` + ++ Recherche dans tout le projet : `Ctrl + MAJ + F` + ++ Equivalent du Alt + Tab pour les fichiers IntelliJ : `Ctrl + Tab` + ++ Reformater le code (clean tout tes espaces et indentation) : `Ctrl + Alt + L` + ++ Supprime les imports pas utiliser : `Ctrl + Alt + O` + ++ Commenter les lignes selectionnées : `Ctrl + /` diff --git a/HELP/TROUBLESHOOTING.md b/HELP/TROUBLESHOOTING.md new file mode 100644 index 0000000000000000000000000000000000000000..eaf736a9468958be862e8307debfb00a4d3149f9 --- /dev/null +++ b/HELP/TROUBLESHOOTING.md @@ -0,0 +1,45 @@ +# Troubleshooting + +Ici, nous avons consigné la plupart des choses que vous pouvez rencontrer sur votre chemin avant d'avoir un projet qui **run**. + +## VT-x/AMD-V hardware acceleration is not available on your system +Lancer dans un powershell admin: `docker-machine create default --virtualbox-no-vtx-check`. + +Si ça ne marche toujours pas, installer la **dernière version** (6.X) de VirtualBox. + +Si cela ne fonctionne toujours pas, vérifier : + * Qu'il soit activé dans le BIOS (c'est généralement le cas) + * Que Hyper-V est désactivé dans Windows (dans un invite de commande admin : `dism.exe /Online /Disable-Feature:Microsoft-Hyper-V` + +## Docker + +`Looks like something went wrong in step 'Looking for vboxmanage.exe' ... Press any key to continue...` +Désinstaller Docker et Virtual Box. Dans l'explorateur de fichier, à la racine de votre utilisateur (C:/utilisateurs/%user%/), supprimer les dossiers .docker et .virtualBox. +Réinstaller Docker + +`Unable to locate bash.exe ` +Pointer vers le répertoire d'installation de Git (C:\Program Files (x86)\Git\bin\bash.exe par défaut) + + +## IP Hote Docker pour Windows + +Si vous êtes sur Windows Home ou Family, Docker utilisera une VM Virtualbox pour faire fonctionner vos containers. +Du coup, l'adresse de tous les services (càd la DB) ne sera pas `localhost` mais `192.168.99.100` + +## Application qui ne démarre pas + +Si quand vous lancez votre application Spring Boot, vous avez des messages d'erreur qui ressemblent à cela (quand vous fouillez dans la Stacktrace) : +`Caused by: java.net.ConnectException: Connection refused (Connection refused)` + +ou + +`Caused by: java.sql.SQLNonTransientConnectionException: Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)` + +C'est que vous avez un soucis de connexion entre votre application et votre DB. + +1. Vérifiez que votre DB est bien lancée et que vous pouvez y accéder via votre client SQL (Intellij IDEA, PhpMyAdmin, Adminer, MySQLWorkbench, etc...) +2. Vérifiez que le host, le login / password, et le port sont bien indiqués et sont les bons (si vous êtes sur windows ou pas, cela peut changer !!!) dans `src/main/resources/application.properties` + +## Dépendances externes qui ne compilent pas (Spring, ou autre) + +Vous pouvez réimporter le projet maven, en cliquant sur l'onglet "Maven" tout à droite de votre écran. diff --git a/img-readme/main-readme/img11.png b/img-readme/main-readme/img11.png index 9012a40ebc9c0c61206794aee7fbe789273cbf7d..7eb33d49e7a20d7a3d3055cf5f9411e88807a68d 100644 Binary files a/img-readme/main-readme/img11.png and b/img-readme/main-readme/img11.png differ diff --git a/img-readme/main-readme/img16.png b/img-readme/main-readme/img16.png index 4107799a98630f251052d00e956b42d8e64d4c4e..3b3a48243e426bf0ca7c2c7454568ce19412474b 100644 Binary files a/img-readme/main-readme/img16.png and b/img-readme/main-readme/img16.png differ diff --git a/img-readme/main-readme/img17.png b/img-readme/main-readme/img17.png index 77d9a292bc6566f21723f5b8e13b60b8668ed034..4fe66e2681b2df2480478e0d205e7a99e86d89fb 100644 Binary files a/img-readme/main-readme/img17.png and b/img-readme/main-readme/img17.png differ diff --git a/img-readme/main-readme/img18.png b/img-readme/main-readme/img18.png index a585eb01ed32a7b01c92c7b9a2b620dba13f8a5c..5a5ded61c9ee8be76b12f8f32b97e675af028c44 100644 Binary files a/img-readme/main-readme/img18.png and b/img-readme/main-readme/img18.png differ diff --git a/img-readme/main-readme/img19.png b/img-readme/main-readme/img19.png index 99afdb077f4e87596148ef4f2c8ca336566966f0..ad42f107f0a8b5f2fad5e89bbd8c1268d8cafba5 100644 Binary files a/img-readme/main-readme/img19.png and b/img-readme/main-readme/img19.png differ diff --git a/img-readme/main-readme/img20.png b/img-readme/main-readme/img20.png index 44e0ee4bef4a02ad92e051542efcb4cd3a1603fe..a69653405f68a617c35b9ca2cb66620c89a3907e 100644 Binary files a/img-readme/main-readme/img20.png and b/img-readme/main-readme/img20.png differ diff --git a/img-readme/main-readme/img23.png b/img-readme/main-readme/img23.png index 8cc32502c0feb4ade3dd459b202120457ef2d87a..2776521cddc4c1abad679e3ef1a6cf5d608b4ea1 100644 Binary files a/img-readme/main-readme/img23.png and b/img-readme/main-readme/img23.png differ diff --git a/img-readme/main-readme/img24.png b/img-readme/main-readme/img24.png index 98481d2a275997134aff412c99622652e2c27d1b..32d27f4ccb38e28ec0c3774d001fb71de8212197 100644 Binary files a/img-readme/main-readme/img24.png and b/img-readme/main-readme/img24.png differ diff --git a/img-readme/main-readme/img31.png b/img-readme/main-readme/img31.png index 7be2ed0b68abede373ce4a79453e67d9e475abcf..d61510f74a252a25f3e47fd0bb6eeac4e5fdf530 100644 Binary files a/img-readme/main-readme/img31.png and b/img-readme/main-readme/img31.png differ diff --git a/img-readme/main-readme/img4.png b/img-readme/main-readme/img4.png deleted file mode 100644 index c31e0cca15d1aeaa8cca656c3b7d563e514bc038..0000000000000000000000000000000000000000 Binary files a/img-readme/main-readme/img4.png and /dev/null differ diff --git a/img-readme/main-readme/img5.png b/img-readme/main-readme/img5.png index a62d185c8066a02dda315b6b54a1ec4111e28c8e..607b4778b89ba94d3c00cac4c744a2bfa9994aea 100644 Binary files a/img-readme/main-readme/img5.png and b/img-readme/main-readme/img5.png differ diff --git a/img-readme/main-readme/img6.png b/img-readme/main-readme/img6.png index 5f8fcfa3e1e69f983bbd1b1a8c23d97ef6eda1e0..d26a6bd516ef1c928c9389a7510216ecb8271ce8 100644 Binary files a/img-readme/main-readme/img6.png and b/img-readme/main-readme/img6.png differ diff --git a/img-readme/main-readme/img8.png b/img-readme/main-readme/img8.png deleted file mode 100644 index 284beb81b611a0b2d73c48d9ccda1b42f9df0616..0000000000000000000000000000000000000000 Binary files a/img-readme/main-readme/img8.png and /dev/null differ diff --git a/webapp-hello-world/.gitignore b/webapp-hello-world/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..df62e6acd4eb5f7a3cbed50e15773ac39c66e566 --- /dev/null +++ b/webapp-hello-world/.gitignore @@ -0,0 +1,48 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output +target +dist +tmp +out-tsc +# Only exists if Bazel was run +bazel-out + +# dependencies +node_modules + +# profiling files +chrome-profiler-events*.json +speed-measure-plugin*.json + +# IDEs and editors +.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history/* + +# misc +.sass-cache +connect.lock +coverage +libpeerconnection.log +npm-debug.log +yarn-error.log +testem.log +typings + +# System Files +.DS_Store +Thumbs.db + diff --git a/webapp-hello-world/HELP.md b/webapp-hello-world/HELP.md new file mode 100644 index 0000000000000000000000000000000000000000..6460549545514ee6235d430bca4c7b66605e19c7 --- /dev/null +++ b/webapp-hello-world/HELP.md @@ -0,0 +1,21 @@ +# Getting Started + +### Reference Documentation +For further reference, please consider the following sections: + +* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) +* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/maven-plugin/reference/html/) +* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/maven-plugin/reference/html/#build-image) +* [Spring Web](https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/reference/htmlsingle/#boot-features-developing-web-applications) +* [Spring Data JPA](https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/reference/htmlsingle/#boot-features-jpa-and-spring-data) +* [Thymeleaf](https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/reference/htmlsingle/#boot-features-spring-mvc-template-engines) + +### Guides +The following guides illustrate how to use some features concretely: + +* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) +* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) +* [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/) +* [Accessing Data with JPA](https://spring.io/guides/gs/accessing-data-jpa/) +* [Handling Form Submission](https://spring.io/guides/gs/handling-form-submission/) + diff --git a/webapp-hello-world/README.md b/webapp-hello-world/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2c9e8f738af04825f3be216b00740e498f46e83b --- /dev/null +++ b/webapp-hello-world/README.md @@ -0,0 +1,22 @@ +# Training Spring Boot + +1. Importe le projet dans IntelliJ IDEA en important le fichier "pom.xml" à la racine de ce répertoire + + +2. Lance et init la bdd avant de run le projet<br> + (besoin du coup de pouce ? [III. SetUp de la BDD via Docker](https://github.com/resourcepool/training-spring-boot/tree/readme-setup#iii-setup-de-la-bdd-via-docker)) + +``` +docker run --name mariadb --rm -e MYSQL_ROOT_PASSWORD=toor -e MYSQL_DATABASE=defaultdb -p 3306:3306 mariadb +``` + +3. Connecte la bdd à IntelliJ via l'onglet Database épinglé à droite.<br> + (besoin du coup de pouce ? [III.2. Afficher la BDD dans Intellij](https://github.com/resourcepool/training-spring-boot/tree/readme-setup#2-afficher-la-bdd-dans-intellij)) + + +4. Lance les scripts sql contenus dans le dossier `/initdb` : Sélectionne les fichiers .sql, clique droit puis 'Run'.<br> + (besoin du coup de pouce ? [III.3. Initialisation de la BDD](https://github.com/resourcepool/training-spring-boot/tree/readme-setup#3-initialisation-de-la-bdd)) + + +5. Lance l'application via IntelliJ, et vérifie qu'elle fonctionne ! (sur http://localhost:8080 par défaut).<br> + (besoin du coup de pouce ? [IV. Run du projet (c'est bientôt fini promis !)](https://github.com/resourcepool/training-spring-boot/tree/readme-setup#iv-run-du-projet-cest-bientôt-fini-promis-)) diff --git a/webapp-hello-world/docker-compose.yml b/webapp-hello-world/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..943a454402c207e0b5a5803c7665c87b8bc1459e --- /dev/null +++ b/webapp-hello-world/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.1' +services: + database: + container_name: webapp-hello-word-database + image: postgres + environment: + POSTGRES_USER : root + POSTGRES_PASSWORD: toor + POSTGRES_DB: default-database + ports: + - "5432:5432" diff --git a/webapp-hello-world/initdb/1_TABLES.sql b/webapp-hello-world/initdb/1_TABLES.sql new file mode 100644 index 0000000000000000000000000000000000000000..25b198c111d2334d87004a6517de77da9e9c8a51 --- /dev/null +++ b/webapp-hello-world/initdb/1_TABLES.sql @@ -0,0 +1,8 @@ +create table users +( + id SERIAL PRIMARY KEY, + first_name TEXT not null, + last_name TEXT not null, + age int null +); + diff --git a/webapp-hello-world/initdb/2_DEFAULT_ENTRIES.sql b/webapp-hello-world/initdb/2_DEFAULT_ENTRIES.sql new file mode 100644 index 0000000000000000000000000000000000000000..0ea9464fec605d6d6ab99960c727fa57985b59bc --- /dev/null +++ b/webapp-hello-world/initdb/2_DEFAULT_ENTRIES.sql @@ -0,0 +1,12 @@ +INSERT INTO users (id, first_name, last_name, age) VALUES (1, 'Paul', 'Harrohide', 20); +INSERT INTO users (id, first_name, last_name, age) VALUES (2, 'Harry', 'Covert', 25); +INSERT INTO users (id, first_name, last_name, age) VALUES (3, 'Alain', 'Posteur', null); +INSERT INTO users (id, first_name, last_name, age) VALUES (4, 'Elvire', 'Debord', null); +INSERT INTO users (id, first_name, last_name, age) VALUES (5, 'Laurent', 'Barre', 41); +INSERT INTO users (id, first_name, last_name, age) VALUES (6, 'Homer', 'Cipourtoux', 28); +INSERT INTO users (id, first_name, last_name, age) VALUES (7, 'Gaston', 'Laplouz', null); +INSERT INTO users (id, first_name, last_name, age) VALUES (8, 'Gisèle', 'Detable', null); +INSERT INTO users (id, first_name, last_name, age) VALUES (9, 'Thomas', 'Ouaque', null); +INSERT INTO users (id, first_name, last_name, age) VALUES (10, 'Sacha', 'Telfrize', 23); + + diff --git a/webapp-hello-world/pom.xml b/webapp-hello-world/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..b4358e2b36850870820b46469ec96d42818b4061 --- /dev/null +++ b/webapp-hello-world/pom.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-parent</artifactId> + <version>2.7.3</version> + <relativePath/> <!-- lookup parent from repository --> + </parent> + <groupId>fr.epf</groupId> + <artifactId>demo</artifactId> + <version>0.0.1-SNAPSHOT</version> + <name>demo</name> + <description>Demo project for Spring Boot</description> + <properties> + <java.version>17</java.version> + </properties> + <dependencies> + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-data-jpa</artifactId> + </dependency> + <dependency> + <groupId>org.postgresql</groupId> + <artifactId>postgresql</artifactId> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-web</artifactId> + </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-test</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + </plugin> + </plugins> + </build> + +</project> diff --git a/webapp-hello-world/src/main/java/io/takima/demo/HelloWorldApplication.java b/webapp-hello-world/src/main/java/io/takima/demo/HelloWorldApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..30bcaea0e27e3e34039ead6f73f7b95450af90fa --- /dev/null +++ b/webapp-hello-world/src/main/java/io/takima/demo/HelloWorldApplication.java @@ -0,0 +1,28 @@ +package io.takima.demo; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; + +import javax.annotation.PostConstruct; + +@SpringBootApplication +public class HelloWorldApplication { + + public static void main(String[] args) { + SpringApplication.run(HelloWorldApplication.class, args); + + } + + @PostConstruct + public void init() { + System.out.println("---------------------------------------"); + System.out.println("---------------------------------------"); + System.out.println("Hello World!"); + System.out.println("Félicitations, votre setup fonctionne parfaitement."); + System.out.println("Vous pouvez maintenant supprimer ce projet."); + System.out.println("---------------------------------------"); + System.out.println("---------------------------------------"); + } + +} diff --git a/webapp-hello-world/src/main/resources/application.properties b/webapp-hello-world/src/main/resources/application.properties new file mode 100644 index 0000000000000000000000000000000000000000..eb93778cb0779555e90d21199c4949516591b8d9 --- /dev/null +++ b/webapp-hello-world/src/main/resources/application.properties @@ -0,0 +1,3 @@ +spring.datasource.url=jdbc:postgresql://localhost:5432/default-database +spring.datasource.username=root +spring.datasource.password=toor