{"id":17173774,"url":"https://github.com/netodevel/oh-my-spring-boot-commons","last_synced_at":"2025-08-02T10:35:52.324Z","repository":{"id":104721812,"uuid":"325716433","full_name":"netodevel/oh-my-spring-boot-commons","owner":"netodevel","description":"several common things I use on a daily basis with spring boot :)","archived":false,"fork":false,"pushed_at":"2021-01-02T23:29:18.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T20:38:16.560Z","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/netodevel.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-12-31T04:49:39.000Z","updated_at":"2021-01-02T23:29:21.000Z","dependencies_parsed_at":"2023-07-12T09:01:05.548Z","dependency_job_id":null,"html_url":"https://github.com/netodevel/oh-my-spring-boot-commons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/netodevel/oh-my-spring-boot-commons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netodevel%2Foh-my-spring-boot-commons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netodevel%2Foh-my-spring-boot-commons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netodevel%2Foh-my-spring-boot-commons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netodevel%2Foh-my-spring-boot-commons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netodevel","download_url":"https://codeload.github.com/netodevel/oh-my-spring-boot-commons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netodevel%2Foh-my-spring-boot-commons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268372062,"owners_count":24239795,"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-08-02T02:00:12.353Z","response_time":74,"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-14T23:52:19.804Z","updated_at":"2025-08-02T10:35:52.309Z","avatar_url":"https://github.com/netodevel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oh-my-spring-boot-commons\nseveral common things I use on a daily basis with spring boot :)\n\n### Goal\n\nkeep all things in common in a single project to avoid duplication of code.\nOf course, only things like: Utility Class, Tests Setups\n\n### Current Itens\n\n* StringKit\n* SocketKit\n* FileKit\n* Embedded Redis\n* Embedded ElasticSearch\n\n### Documentation\n\n#### Utility classes\n\n* String kit\n\n```java\n    StringKit.isBlank(value);\n    StringKit.isNotBlank(value);\n    StringKit.isBlankThen(value, (e) -\u003e {\n                throw new IllegalArgumentException(\"can not be blank\");\n            });\n    StringKit.isNumber(value);\n    StringKit.toCapitalize(value);\n```\n\n* SocketKit\n\n```java\n    SocketKit.isPortAlreadyUsed(6379);\n```\n\n* FileKit\n\n```java\n    FileKit.inputStreamToString(inputStream);\n    FileKit.inputStreamToString(inputStream, \"\\n\");\n```\n\n#### Embedded Servers For Integration Tests\n\nGoal: Run services with Auto Configuration of Spring Boot to run integrated tests.\n\n* Embedded Redis\n    \n  `just add dependecy`\n  \n  * props\n  \n  `embedded.redis.port=6379`\n  \n  `embedded.redis.active=true`\n  \n* Embedded ElasticSearch\n    \n  `just add dependecy`\n  \n  * props (required props)\n  \n  `embedded.elasticsearch.mapping=test-mapping.json`\n  \n  `embedded.elasticsearch.setting=test-setting.json`\n  \n  `embedded.elasticsearch.index=index-name`\n  \n  `embedded.elasticsearch.type=_doc`\n  \n  (optional props)\n  \n  `embedded.elasticsearch.port=9200`\n  \n  `embedded.elasticsearch.active=true`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetodevel%2Foh-my-spring-boot-commons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetodevel%2Foh-my-spring-boot-commons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetodevel%2Foh-my-spring-boot-commons/lists"}