Skip to content

Commit 6c2a86e

Browse files
committed
Исправление неработающего аспекта из-за lazy-init при запуске BSL LS через биндинг-класс
1 parent 1ef1764 commit 6c2a86e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/aop/AspectJConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.aspectj.lang.Aspects;
2626
import org.springframework.context.annotation.Bean;
2727
import org.springframework.context.annotation.Configuration;
28+
import org.springframework.context.annotation.Lazy;
2829

2930
/**
3031
* Конфигурация фреймворка AspectJ.
@@ -38,6 +39,7 @@ public class AspectJConfiguration {
3839
* @return Основной аспект подсистемы событий.
3940
*/
4041
@Bean
42+
@Lazy(false)
4143
public EventPublisherAspect eventPublisherAspect() {
4244
return Aspects.aspectOf(EventPublisherAspect.class);
4345
}

0 commit comments

Comments
 (0)