{"id":17618495,"url":"https://github.com/thilux/sample_spring_boot","last_synced_at":"2025-10-16T07:32:49.645Z","repository":{"id":48314007,"uuid":"246912670","full_name":"thilux/sample_spring_boot","owner":"thilux","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-01T21:14:56.000Z","size":6705,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T20:06:46.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thilux.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-12T19:14:51.000Z","updated_at":"2020-03-12T20:12:43.000Z","dependencies_parsed_at":"2025-02-18T20:36:47.801Z","dependency_job_id":"d058c761-5d1d-438d-841a-945af9ea6d80","html_url":"https://github.com/thilux/sample_spring_boot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thilux/sample_spring_boot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fsample_spring_boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fsample_spring_boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fsample_spring_boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fsample_spring_boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thilux","download_url":"https://codeload.github.com/thilux/sample_spring_boot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fsample_spring_boot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931652,"owners_count":26070788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T19:46:22.719Z","updated_at":"2025-10-08T10:45:18.073Z","avatar_url":"https://github.com/thilux.png","language":"Java","readme":"# Spring PetClinic Sample Application [![Build Status](https://travis-ci.org/spring-projects/spring-petclinic.png?branch=master)](https://travis-ci.org/spring-projects/spring-petclinic/)\nDeploy this sample application to Pivotal Web Services:\n\n\u003ca href=\"https://push-to.cfapps.io?repo=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-petclinic.git\"\u003e\n    \u003cimg src=\"https://push-to.cfapps.io/ui/assets/images/Push-to-Pivotal-Light-with-Shadow.svg\" width=\"180\" alt=\"Push\" align=\"center\"\u003e\n\u003c/a\u003e\n\n## Understanding the Spring Petclinic application with a few diagrams\n\u003ca href=\"https://speakerdeck.com/michaelisvy/spring-petclinic-sample-application\"\u003eSee the presentation here\u003c/a\u003e\n\n## Running petclinic locally\nPetclinic is a [Spring Boot](https://spring.io/guides/gs/spring-boot) application built using [Maven](https://spring.io/guides/gs/maven/). You can build a jar file and run it from the command line:\n\n\n```\ngit clone https://github.com/spring-projects/spring-petclinic.git\ncd spring-petclinic\n./mvnw package\njava -jar target/*.jar\n```\n\nYou can then access petclinic here: http://localhost:8080/\n\n\u003cimg width=\"1042\" alt=\"petclinic-screenshot\" src=\"https://cloud.githubusercontent.com/assets/838318/19727082/2aee6d6c-9b8e-11e6-81fe-e889a5ddfded.png\"\u003e\n\nOr you can run it from Maven directly using the Spring Boot Maven plugin. If you do this it will pick up changes that you make in the project immediately (changes to Java source files require a compile as well - most people use an IDE for this):\n\n```\n./mvnw spring-boot:run\n```\n\n## In case you find a bug/suggested improvement for Spring Petclinic\nOur issue tracker is available here: https://github.com/spring-projects/spring-petclinic/issues\n\n\n## Database configuration\n\nIn its default configuration, Petclinic uses an in-memory database (HSQLDB) which\ngets populated at startup with data. A similar setup is provided for MySql in case a persistent database configuration is needed.\nNote that whenever the database type is changed, the app needs to be run with a different profile: `spring.profiles.active=mysql` for MySql.\n\nYou could start MySql locally with whatever installer works for your OS, or with docker:\n\n```\ndocker run -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8\n```\n\nFurther documentation is provided [here](https://github.com/spring-projects/spring-petclinic/blob/master/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt).\n\n## Working with Petclinic in your IDE\n\n### Prerequisites\nThe following items should be installed in your system:\n* Java 8 or newer.\n* git command line tool (https://help.github.com/articles/set-up-git)\n* Your preferred IDE \n  * Eclipse with the m2e plugin. Note: when m2e is available, there is an m2 icon in `Help -\u003e About` dialog. If m2e is\n  not there, just follow the install process here: https://www.eclipse.org/m2e/\n  * [Spring Tools Suite](https://spring.io/tools) (STS)\n  * IntelliJ IDEA\n  * [VS Code](https://code.visualstudio.com)\n\n### Steps:\n\n1) On the command line\n```\ngit clone https://github.com/spring-projects/spring-petclinic.git\n```\n2) Inside Eclipse or STS\n```\nFile -\u003e Import -\u003e Maven -\u003e Existing Maven project\n```\n\nThen either build on the command line `./mvnw generate-resources` or using the Eclipse launcher (right click on project and `Run As -\u003e Maven install`) to generate the css. Run the application main method by right clicking on it and choosing `Run As -\u003e Java Application`.\n\n3) Inside IntelliJ IDEA\n\nIn the main menu, choose `File -\u003e Open` and select the Petclinic [pom.xml](pom.xml). Click on the `Open` button.\n\nCSS files are generated from the Maven build. You can either build them on the command line `./mvnw generate-resources`\nor right click on the `spring-petclinic` project then `Maven -\u003e Generates sources and Update Folders`.\n\nA run configuration named `PetClinicApplication` should have been created for you if you're using a recent Ultimate\nversion. Otherwise, run the application by right clicking on the `PetClinicApplication` main class and choosing\n`Run 'PetClinicApplication'`.\n\n4) Navigate to Petclinic\n\nVisit [http://localhost:8080](http://localhost:8080) in your browser.\n\n\n## Looking for something in particular?\n\n|Spring Boot Configuration | Class or Java property files  |\n|--------------------------|---|\n|The Main Class | [PetClinicApplication](https://github.com/spring-projects/spring-petclinic/blob/master/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java) |\n|Properties Files | [application.properties](https://github.com/spring-projects/spring-petclinic/blob/master/src/main/resources) |\n|Caching | [CacheConfiguration](https://github.com/spring-projects/spring-petclinic/blob/master/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java) |\n\n## Interesting Spring Petclinic branches and forks\n\nThe Spring Petclinic master branch in the main [spring-projects](https://github.com/spring-projects/spring-petclinic)\nGitHub org is the \"canonical\" implementation, currently based on Spring Boot and Thymeleaf. There are\n[quite a few forks](https://spring-petclinic.github.io/docs/forks.html) in a special GitHub org\n[spring-petclinic](https://github.com/spring-petclinic). If you have a special interest in a different technology stack\nthat could be used to implement the Pet Clinic then please join the community there.\n\n\n## Interaction with other open source projects\n\nOne of the best parts about working on the Spring Petclinic application is that we have the opportunity to work in direct contact with many Open Source projects. We found some bugs/suggested improvements on various topics such as Spring, Spring Data, Bean Validation and even Eclipse! In many cases, they've been fixed/implemented in just a few days.\nHere is a list of them:\n\n| Name | Issue |\n|------|-------|\n| Spring JDBC: simplify usage of NamedParameterJdbcTemplate | [SPR-10256](https://jira.springsource.org/browse/SPR-10256) and [SPR-10257](https://jira.springsource.org/browse/SPR-10257) |\n| Bean Validation / Hibernate Validator: simplify Maven dependencies and backward compatibility |[HV-790](https://hibernate.atlassian.net/browse/HV-790) and [HV-792](https://hibernate.atlassian.net/browse/HV-792) |\n| Spring Data: provide more flexibility when working with JPQL queries | [DATAJPA-292](https://jira.springsource.org/browse/DATAJPA-292) |\n\n\n# Contributing\n\nThe [issue tracker](https://github.com/spring-projects/spring-petclinic/issues) is the preferred channel for bug reports, features requests and submitting pull requests.\n\nFor pull requests, editor preferences are available in the [editor config](.editorconfig) for easy use in common text editors. Read more and download plugins at \u003chttps://editorconfig.org\u003e. If you have not previously done so, please fill out and submit the [Contributor License Agreement](https://cla.pivotal.io/sign/spring).\n\n# License\n\nThe Spring PetClinic sample application is released under version 2.0 of the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).\n\n[spring-petclinic]: https://github.com/spring-projects/spring-petclinic\n[spring-framework-petclinic]: https://github.com/spring-petclinic/spring-framework-petclinic\n[spring-petclinic-angularjs]: https://github.com/spring-petclinic/spring-petclinic-angularjs \n[javaconfig branch]: https://github.com/spring-petclinic/spring-framework-petclinic/tree/javaconfig\n[spring-petclinic-angular]: https://github.com/spring-petclinic/spring-petclinic-angular\n[spring-petclinic-microservices]: https://github.com/spring-petclinic/spring-petclinic-microservices\n[spring-petclinic-reactjs]: https://github.com/spring-petclinic/spring-petclinic-reactjs\n[spring-petclinic-graphql]: https://github.com/spring-petclinic/spring-petclinic-graphql\n[spring-petclinic-kotlin]: https://github.com/spring-petclinic/spring-petclinic-kotlin\n[spring-petclinic-rest]: https://github.com/spring-petclinic/spring-petclinic-rest\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilux%2Fsample_spring_boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthilux%2Fsample_spring_boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilux%2Fsample_spring_boot/lists"}