Class SpringConfig

java.lang.Object
ru.averkiev.socialmediaapi.configs.SpringConfig

@Configuration @ComponentScan(basePackages="ru.averkiev.socialmediaapi") @EnableJpaRepositories(basePackages="ru.averkiev.socialmediaapi.repositories") @EnableTransactionManagement @EnableMethodSecurity public class SpringConfig extends Object
Настройка конфигурации Spring.
Author:
mrGreenNV
  • Constructor Details

    • SpringConfig

      public SpringConfig()
  • Method Details

    • modelMapper

      @Bean public org.modelmapper.ModelMapper modelMapper()
      Создание Bean для преобразования DTO к модели и наоборот.
      Returns:
      объект ModelMapper.