/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testing-modules/spring-testing/src/main/java/com/baeldung/config/WebConfig.java
17 строк
504 B
Oscar Mauricio Forero Carrillo
BAEL-7136: Remove spring-testing dependency on the parent POM and fix the dependencies to fix the integration tests (#15940)
26 фев 2024, 00:43
Не верифицирован
26 фев 2024, 00:43
40952ba
Код
Авторство
О чём код?
package com.baeldung.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import jakarta.servlet.ServletContext; @EnableWebMvc @Configuration @ComponentScan(basePackages = {"com.baeldung.controller.parameterized"}) public class WebConfig { @Autowired private ServletContext ctx; }