Евгений Борисов — Spring-потрошитель, часть 1
Why Stack Overflow на русском recommends it
Stack Overflow на русском users recommend it to people learning Spring who want to understand what happens under the hood, and several follow it step by step when they ask their own questions.
Recommended by 2 people across 2 different months, 2016 to 2019.
What it is
A conference talk by Evgeny Borisov at a JUG.ru meetup in St. Petersburg (June 2014), the first part of the Spring 'Ripper' series. It opens up Spring's internals with live-coded examples: the bean lifecycle, how ApplicationContext works, BeanPostProcessors, custom annotations, and Spring's effect on performance.
What people said
Recommends MrFylypenko · 2016-10 · Stack Overflow на русском · on “Spring Controllers”
Если одним словом, то смотрите как работает `Spring IoC контейнер`, все методы выполняются внутри него (он же Dependency Injection (DI)), ну и полезным будет видео spring-потрошитель [this video]
Recommends Andrey Dorohovich · 2018-04 · Stack Overflow на русском · on “Как правильно подойти к изучению Spring?”
Автору вопроса скорее всего не нужно стать экспертом по спрингу, а хотя бы получить представление о Spring, это вполне реально за две недели. Я бы посоветовал найти простенький туториал, выполнить его, а потом посмотреть Spring-потрошитель Евгения Борисова [this video]
Cites Vadim · 2018-11 · Stack Overflow на русском · on “Не выводится текст из spring bean”
Пытаюсь освоить Spring. Делаю все по видео Spring Потрошитель [this video] , но на экран ничего не выходит. Вроде бин класса InjectRandomIntAnnotationBeanPostProcessor просто игнорируется. Просьба подсказать в чем проблема? Сам бин: public class TerminatorQuoter implements Quoter { private String message; @InjectRandomInt(min = 2, max = 7) private int repeat; public void setMessage(String message) { this.message = message; } public void sayQuote() { for (int i = 0; i < repeat; i++) { System.out.println("message = s" + message); } } Аннотация: @Retention(RetentionPolicy.RUNTIME) public @interface InjectRandomInt { int min(); int max(); } BeanPostProcessor: public class InjectRandomIntAnnotationBea
Cites Red Beard · 2019-04 · Stack Overflow на русском · on “Ошибка Spring: AbstractApplicationContext#getBean(Class<T> requiredType) выдает null”
Нужна ваша помощь и подсказка. Дело, думаю, в какой-то мелочи, которую я в упор не вижу. Ковыряю потихоньку Spring по лекции Евгения Борисова ( [this video] ) и столкнулся с такой проблемой (репозиторий с проектом на гитхабе [LINK] ) - выполнение кода падает с ошибкой: апр 20, 2019 6:21:16 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [common_beans.xml] Exception in thread "main" java.lang.NullPointerException at redbeard.Runner.main(Runner.java:8) Process finished with exit code 1 Причем: ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("common_beans.xml"); отрабатывает н