{"id":16179258,"url":"https://github.com/jonashackt/springboot-two-connectors-http-and-https","last_synced_at":"2025-04-07T11:43:13.261Z","repository":{"id":147270220,"uuid":"46263675","full_name":"jonashackt/springboot-two-connectors-http-and-https","owner":"jonashackt","description":"Show how to implement two Connectors within Spring Boot´s embedded Tomcat","archived":false,"fork":false,"pushed_at":"2019-08-20T07:40:36.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T14:24:02.709Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonashackt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-11-16T09:08:04.000Z","updated_at":"2019-08-20T07:40:38.000Z","dependencies_parsed_at":"2023-06-30T01:16:11.184Z","dependency_job_id":null,"html_url":"https://github.com/jonashackt/springboot-two-connectors-http-and-https","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspringboot-two-connectors-http-and-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspringboot-two-connectors-http-and-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspringboot-two-connectors-http-and-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspringboot-two-connectors-http-and-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonashackt","download_url":"https://codeload.github.com/jonashackt/springboot-two-connectors-http-and-https/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648923,"owners_count":20972942,"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","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-10T05:26:28.049Z","updated_at":"2025-04-07T11:43:13.238Z","avatar_url":"https://github.com/jonashackt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# springboot-two-connectors-http-and-https\n[![Build Status](https://travis-ci.org/jonashackt/springboot-two-connectors-http-and-https.svg?branch=master)](https://travis-ci.org/jonashackt/springboot-two-connectors-http-and-https)\n[![Coverage Status](https://coveralls.io/repos/jonashackt/springboot-two-connectors-http-and-https/badge.svg)](https://coveralls.io/r/jonashackt/springboot-two-connectors-http-and-https)\n\nShow how to implement two Connectors within Spring Boot´s embedded Tomcat\n\nAs sometimes it could be necessary to implement a SSL-Connection within your SpringBoot App, but you additionally want to communicate through http only, you need to configure Spring Boot´s embedded Tomcat to run with two Connectors - one for https and one with http.\n\nThe [docs] states, that \"It’s recommended to use application.properties to configure HTTPS as the HTTP connector is the easier of the two to configure programmatically\", but the linked [sample-project] doesn´t show exactly that recommendation. So thats why there`s this simple project here :)\n\n## HowTo\n\nAs we use nice [maven-wrapper], you don´t even need a running maven-installation, but it´s no problem if you have. Just clone project and inside the folder say\n\n```\n$ ./mvnw clean install\n```\n\nor\n\n```\n$ ./mvnw.cmd clean install\n```\n\nAnd furthermore you need to arm a keystore with some certificate. If GUIs are your flavor, you can try [KeyStore Explorer]\n(yes, it´s really on sourceforge :) ) and if you´re on Mac, just type\n\n```\nbrew cask install keystore-explorer\n```\n\n\n\n\n\n[docs]:http://docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-servlet-containers.html#howto-configure-ssl\n[sample-project]:http://github.com/spring-projects/spring-boot/tree/v1.3.0.RELEASE/spring-boot-samples/spring-boot-sample-tomcat-multi-connectors\n[maven-wrapper]:https://github.com/takari/maven-wrapper\n[KeyStore Explorer]:http://keystore-explorer.sourceforge.net/downloads.php","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashackt%2Fspringboot-two-connectors-http-and-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonashackt%2Fspringboot-two-connectors-http-and-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashackt%2Fspringboot-two-connectors-http-and-https/lists"}