{"id":18760833,"url":"https://github.com/sarakhild/spring-boot-aop","last_synced_at":"2026-04-20T06:02:49.147Z","repository":{"id":202758163,"uuid":"708043226","full_name":"SaraKhild/spring-boot-aop","owner":"SaraKhild","description":"This project simplify the Spring AOP","archived":false,"fork":false,"pushed_at":"2023-11-04T17:51:39.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T00:48:11.083Z","etag":null,"topics":["java","spring-aop","spring-aop-annotation","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/SaraKhild.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,"zenodo":null}},"created_at":"2023-10-21T10:57:39.000Z","updated_at":"2023-10-22T08:43:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e77d9b3-abcd-496f-8541-7dc949836edb","html_url":"https://github.com/SaraKhild/spring-boot-aop","commit_stats":null,"previous_names":["sarakhild/spring-boot-aop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaraKhild/spring-boot-aop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fspring-boot-aop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fspring-boot-aop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fspring-boot-aop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fspring-boot-aop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaraKhild","download_url":"https://codeload.github.com/SaraKhild/spring-boot-aop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fspring-boot-aop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32035276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["java","spring-aop","spring-aop-annotation","spring-boot"],"created_at":"2024-11-07T18:14:01.618Z","updated_at":"2026-04-20T06:02:49.124Z","avatar_url":"https://github.com/SaraKhild.png","language":"Java","readme":"# Spring Boot Aop Project\n\n\u003cbr\u003e\n\n## Overview\n In this project I implement an Aspect for logging execution for service, controller, and repository Spring components using Spring AOP \n \n \u003cbr\u003e\n \n## Usages\n- SpringBoot\n- Spring AOP\n- Lombok\n- MySQL\n  \n\u003cbr\u003e \n\n## Architecture of the Project\n\n ### 1-src folder\n \n   - Aspect\n   - Exception\n   - Controller\n   - Model\n   - Service\n   - Repository \n   \n### 2-Maven pom.xml\n\n\u003cbr\u003e \n    \n```\n \u003cdependencies\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-data-jpa\u003c/artifactId\u003e\n\t\t\u003c/dependency\u003e\n\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-web\u003c/artifactId\u003e\n\t\t\u003c/dependency\u003e\n\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003ecom.mysql\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003emysql-connector-j\u003c/artifactId\u003e\n\t\t\t\u003cscope\u003eruntime\u003c/scope\u003e\n\t\t\u003c/dependency\u003e\n\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.projectlombok\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003elombok\u003c/artifactId\u003e\n\t\t\t\u003coptional\u003etrue\u003c/optional\u003e\n\t\t\u003c/dependency\u003e\n\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-test\u003c/artifactId\u003e\n\t\t\t\u003cscope\u003etest\u003c/scope\u003e\n\t\t\u003c/dependency\u003e\n\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-aop\u003c/artifactId\u003e\n\t\t\u003c/dependency\u003e\n \u003c/dependencies\u003e\n ```\n\n\u003cbr\u003e\n \n### 3-Application.Properties\n\n```\nspring.jpa.hibernate.ddl-auto=update\nspring.datasource.url=jdbc:mysql://localhost:3312/db\nspring.datasource.username=db\nspring.datasource.password=nFLhPPKOnkW1FA1e\nspring.jpa.show-sql=true\n\n ```\n ## Let's Start :mechanical_arm:\n\n##### :pencil2: `Pointcut that matches all repositories, services, and Web REST endpoints. Method is empty as this is just a Pointcut, the implementations are in the Before advices. The second Before that matche with create employee method with 0 or many args, employee type that match with advice args. The AfterReturning is executed after a join point completes normally, for example, if the method returns without throwing an exception.` \n\n###### Code :computer:\n\n\u003cbr\u003e\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/5932b9b1-1862-40a0-88a9-f5f27c0388a8)\n\n\u003cbr\u003e\n\n###### Result :star_struck:\n\n\u003cbr\u003e\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/c0baa5e3-57f4-4a7d-add7-ee8d4e422a61)\n\n---\n\n\u003cbr\u003e\n\n##### :pencil2: `Pointcut that matches all repositories, services, and Web REST endpoints. Method is empty as this is just a Pointcut, the implementations are in the Before advices. Around that matches all methods service which logs when a method is entered and exited.` \n\n###### Code :computer:\n\n\u003cbr\u003e\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/a3d4a7b2-18d7-4f65-a89a-dc4e49c16f2c)\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/ceb208a9-ff27-4245-b40a-f884ff15ddc1)\n\n\u003cbr\u003e\n\n###### Result :star_struck:\n\n\u003cbr\u003e\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/f9c6f29c-407d-406f-956a-88c399eef8e1)\n\n---\n\n\u003cbr\u003e\n\n##### :pencil2: `Pointcut that matches all repositories, services, and Web REST endpoints. Method is empty as this is just a Pointcut, the implementations are in the Before advices. Around that matches all methods service which logs when a method is entered and when throwing exception.` \n\n###### Code :computer:\n\n\u003cbr\u003e\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/519a3c41-b03f-4cd6-b868-79acd31df43e)\n\n![](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/2fe6dba5-6fcb-4c5b-be66-33008cbc9b32)\n\n\u003cbr\u003e\n\n###### Result :star_struck:\n\n\u003cbr\u003e\n\n![IMG_1711](https://github.com/SaraKhild/spring-boot-aop/assets/67427643/39f57424-3faa-402b-8e09-ae20bec4e780)\n  \n---\n\u003cbr\u003e\n\n### Good Luck \u003cimg src=\"https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif\" width=\"30px\"\u003e \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarakhild%2Fspring-boot-aop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarakhild%2Fspring-boot-aop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarakhild%2Fspring-boot-aop/lists"}