https://github.com/circleci-public/circleci-demo-java-spring
Example Java application running on CircleCI
https://github.com/circleci-public/circleci-demo-java-spring
circleci circleci-demos java
Last synced: 9 months ago
JSON representation
Example Java application running on CircleCI
- Host: GitHub
- URL: https://github.com/circleci-public/circleci-demo-java-spring
- Owner: CircleCI-Public
- License: mit
- Created: 2017-05-22T23:27:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-19T19:26:08.000Z (about 1 year ago)
- Last Synced: 2025-04-12T06:06:12.023Z (10 months ago)
- Topics: circleci, circleci-demos, java
- Language: Java
- Homepage: https://circleci.com/gh/CircleCI-Public/circleci-demo-java-spring
- Size: 924 KB
- Stars: 58
- Watchers: 36
- Forks: 301
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CircleCI 2.0 Java Demo Application using Gradle and Spring [](https://circleci.com/gh/CircleCI-Public/circleci-demo-java-spring)
**Note:** This project is currently under substantial development to include additional use cases and show off more features of CircleCI.
If you are coming here form the [Java Language Guide](https://circleci.com/docs/2.0/language-java/#config-walkthrough) please follow along at [this revision](https://github.com/CircleCI-Public/circleci-demo-java-spring/tree/9dcdae5e2988b207e0ac9b6bb9cf8ed711fba4ad) before major changes began to take place.
This message will be removed once the CircleCI documentation matches this repository again.
---
This is an example application showcasing how to run a Java app on CircleCI 2.0.
This application uses the following tools:
* Gradle
* Java 11
* PostgreSQL
* Spring Boot
* Thymeleaf
You can follow along with this project by reading the [documentation](https://circleci.com/docs/2.0/language-java/).
An older version of this sample project that uses Maven is accessible [here](https://github.com/CircleCI-Public/circleci-demo-java-spring/tree/maven) though it is no longer being actively maintained.
## Local Development
### Starting the application
```
./gradlew bootRunDev
```
Navigate to http://localhost:8080

We use the [H2 Database](https://www.h2database.com/html/main.html) in memory for
local development. You can access the datbase UI at [http://localhost:8080/h2-console](http://localhost:8080/h2-console)
with the following credentials.
```
username: `sa`
password: `password`
JDBC URL: jdbc:h2:mem:testdb
```
## License
Copyright © 2019 CircleCI
Distributed under the MIT license, see the file LICENSE.