Skip to main content
0 votes
1 answer
105 views

I have my custom toString that masks some fields of DTO: @Data @NoArgsConstructor @AllArgsConstructor public class Tested { private String name; private String surname; @ToString.Include(...
Dmitry Sheyko's user avatar
0 votes
1 answer
89 views

I have a simple Service class that makes call to a third party API to create or update the record. I have 2 separate methods in my service class to make the POST and PUT call. The service class first ...
Abhinash Jha's user avatar
0 votes
1 answer
53 views

Spring 6.2.x I would like to have two different aspects "cooperate" when they are annotated on the same method. One of them is a custom @Around aspect for Spring's own @Scheduled annotation, ...
E-Riz's user avatar
  • 33.6k
1 vote
1 answer
96 views

I’m currently using AspectJ alongside Spring AOP in my Maven project. I want to enable compile-time weaving for aspects that are provided by a dependency (my-aspect-library) while retaining Spring’s ...
Shadow Hatake's user avatar
0 votes
1 answer
95 views

I created an Java Spring library to audit and log execution times during the execution of my application. I deployed it on SonaType and load it as a dependency in a demo project. The properties of my ...
Speedkillsx's user avatar
0 votes
1 answer
50 views

I have an interface with implementation class being a Spring bean: public interface LeaderboardService { List<PlayerRankWithDetails> getTopScores(Long tournamentId, int limit); } For this I'...
Sergey Tsypanov's user avatar
3 votes
0 answers
251 views

In my Spring Boot 3.4.0 based application, I have an @Aspect named TenantServiceAspect that intercepts repository method calls to apply multi-tenancy filters using Hibernate filters. This aspect works ...
kernel's user avatar
  • 912
0 votes
0 answers
35 views

I'm writing the canonical execution time logging aspect, and I would like to test my pointcut expression. More clearly, suppose I have the following pointcut expression in an aspect @Around("...
Riduidel's user avatar
  • 22.4k
0 votes
1 answer
75 views

we have a aspect to log time taken by a method. Currently it is failing with NullPointerException due to aspect is passing null to ExecutorService. Is something i miss here , why null is passed to ...
Mohit's user avatar
  • 55
0 votes
0 answers
29 views

I have a spring cloud function that reads from kafka topic. Here's how I define the consumer as it's described here -> url Consumer @IdempotentKafkaConsumer @Bean fun readConnectionStatusEvent() : ...
Berkin's user avatar
  • 1,676
2 votes
1 answer
236 views

Description When using Spring AOP to proxy a HelloService bean in combination with a custom BeanPostProcessor (MyPostProcessor) and a FactoryBean (MyFactoryBean), the AOP proxy is not applied to the ...
java-lbb's user avatar
0 votes
1 answer
44 views

We have the following requirement in our micro-service architecture: Calling some of A's microservice endpoints should block calling endpoints of B's microservice. To accomplish this we have created ...
zashto's user avatar
  • 11
1 vote
0 answers
33 views

I’m trying to implement spring aop around the commit(TransactionStatus status) method in AbstractPlatformTransactionManager class. The method is final and I understand that it isn’t possible to do ...
דוד פאר's user avatar
0 votes
1 answer
55 views

In a Spring application, we added some AOP pointcuts to do intercept save, saveAll, ... methods of jpa repositories to refresh a materilized view each time the entities are inserted, updated. But, we ...
fluminis's user avatar
  • 4,261
1 vote
1 answer
123 views

I'm using spring-boot 3.4.2. I want to use AOP aspects in order to modify annotations that I use in a spring boot test. However my @Around method is not triggered during test execution. If I annotate ...
truj's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
177