You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Либо мы можем использовать Spring Dependency Management, как и в основном проекте, так же см. описание варианта
134
-
конфигурации в [DOC/HandMade_SB_Starter/BuildingSpringBootStarter.txt](https://github.com/JcoderPaul/Spring_Framework_Lessons/blob/master/Spring_part_25/DOC/HandMade_SB_Starter/BuildingSpringBootStarter.txt)
134
+
конфигурации в [DOC/HandMade_SB_Starter/BuildingSpringBootStarter.md](https://github.com/JcoderPaul/Spring_Framework_Lessons/blob/master/Spring_part_25/DOC/HandMade_SB_Starter/BuildingSpringBootStarter.md)
135
135
136
136
У нашего отдельного модуля свой [src](https://github.com/JcoderPaul/Spring_Framework_Lessons/tree/master/Spring_part_25/myfirst-logging-spring-boot-starter/src) пакет в который мы перенесем нашу [АОП логику](https://github.com/JcoderPaul/Spring_Framework_Lessons/tree/master/Spring_part_25/myfirst-logging-spring-boot-starter/src/main/java/spring/oldboy/logging/aop) из прошлого проекта, чтобы выделить в
и в [@ConditionalOnProperty](https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/condition/ConditionalOnProperty.html).
175
175
176
176
-**Шаг 4.** - Нам необходимо как-то просканировать LoggingAutoConfiguration.java, чтобы увидеть аннотацию @Configuration (чтобы Spring
177
-
приложение увидело эту аннотацию и поместило класс и его bean-ы в контекст) см. [DOC/HandMade_SB_Starter/BuildingSpringBootStarter.txt](https://github.com/JcoderPaul/Spring_Framework_Lessons/blob/master/Spring_part_25/DOC/HandMade_SB_Starter/BuildingSpringBootStarter.txt)
177
+
приложение увидело эту аннотацию и поместило класс и его bean-ы в контекст) см. [DOC/HandMade_SB_Starter/BuildingSpringBootStarter.md](https://github.com/JcoderPaul/Spring_Framework_Lessons/blob/master/Spring_part_25/DOC/HandMade_SB_Starter/BuildingSpringBootStarter.md)
178
178
Для этого мы в папке 'resources' создаем папку '[META-INF](https://github.com/JcoderPaul/Spring_Framework_Lessons/tree/master/Spring_part_25/myfirst-logging-spring-boot-starter/src/main/resources/META-INF)' и добавляем в нее [spring.factories](https://github.com/JcoderPaul/Spring_Framework_Lessons/blob/master/Spring_part_25/myfirst-logging-spring-boot-starter/src/main/resources/META-INF/spring.factories) (с содержимым):
0 commit comments