{"id":24194403,"url":"https://github.com/nuraj250/spring-boot-custom-annotation","last_synced_at":"2026-04-29T15:03:31.939Z","repository":{"id":270999376,"uuid":"907758573","full_name":"Nuraj250/spring-boot-custom-annotation","owner":"Nuraj250","description":"Spring Boot example demonstrating the creation and use of a custom annotation with AOP to log method execution times.","archived":false,"fork":false,"pushed_at":"2025-02-22T08:24:49.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T09:37:30.199Z","etag":null,"topics":["aop","backend","custom-annotation","excution-time","java","logging","spring-boot"],"latest_commit_sha":null,"homepage":"","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/Nuraj250.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":"2024-12-24T10:13:36.000Z","updated_at":"2025-02-22T08:24:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"baab3c1e-7e99-4230-adce-8747b41af3ec","html_url":"https://github.com/Nuraj250/spring-boot-custom-annotation","commit_stats":null,"previous_names":["nuraj250/spring-boot-custom-annotation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuraj250%2Fspring-boot-custom-annotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuraj250%2Fspring-boot-custom-annotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuraj250%2Fspring-boot-custom-annotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuraj250%2Fspring-boot-custom-annotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nuraj250","download_url":"https://codeload.github.com/Nuraj250/spring-boot-custom-annotation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241622601,"owners_count":19992504,"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":["aop","backend","custom-annotation","excution-time","java","logging","spring-boot"],"created_at":"2025-01-13T18:36:21.873Z","updated_at":"2026-04-29T15:03:26.918Z","avatar_url":"https://github.com/Nuraj250.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot Custom Annotation       \n \nThis repository demonstrates how to create and use a custom annotation in a Spring Boot application. The custom annotation `@LogExecutionTime` is used to measure and log the execution time of methods, leveraging Spring's Aspect-Oriented Programming (AOP) capabilities. \n  \n## Features\n- Define custom annotations for reusable logic.\n- Implement an aspect for method execution time logging.\n- Example integration with a Spring Boot service and REST controller.\n\n## Use Case\nThe `@LogExecutionTime` annotation can be applied to any method, and it will automatically log the execution time of that method without modifying its business logic.\n\n## Key Components\n1. **Custom Annotation**\n   - Annotation: `@LogExecutionTime`\n   - Scope: Method-level.\n\n2. **Aspect**\n   - Logs the execution time of annotated methods using Spring AOP.\n\n3. **Example Application**\n   - A sample service and REST controller demonstrate the usage of the custom annotation.\n\n## How to Run\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Nuraj250/spring-boot-custom-annotation.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuraj250%2Fspring-boot-custom-annotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuraj250%2Fspring-boot-custom-annotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuraj250%2Fspring-boot-custom-annotation/lists"}