From 7aadceb924c1b22351df5e0535a03edceb5047cf Mon Sep 17 00:00:00 2001 From: Anatoliy Sablin Date: Mon, 6 Nov 2017 17:18:37 +0300 Subject: Fixed configurations. --- .../src/main/java/com/juick/command/CommandsConfiguration.java | 3 +++ juick-commands/src/main/java/com/juick/command/Processor.java | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'juick-commands/src') diff --git a/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java b/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java index b6b9ea0d..a8f66653 100644 --- a/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java +++ b/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java @@ -1,8 +1,10 @@ package com.juick.command; +import com.juick.configuration.DataConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; import java.util.Set; @@ -10,6 +12,7 @@ import java.util.Set; * @author ma1uta */ @Configuration +@Import(DataConfiguration.class) @ComponentScan(basePackages = {"com.juick.command"}) public class CommandsConfiguration { diff --git a/juick-commands/src/main/java/com/juick/command/Processor.java b/juick-commands/src/main/java/com/juick/command/Processor.java index bf46a758..f02e7c4b 100644 --- a/juick-commands/src/main/java/com/juick/command/Processor.java +++ b/juick-commands/src/main/java/com/juick/command/Processor.java @@ -6,7 +6,6 @@ import lombok.Setter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; import java.util.Set; import java.util.regex.Pattern; @@ -14,7 +13,6 @@ import java.util.regex.Pattern; /** * @author ma1uta */ -@Component @Getter public class Processor { -- cgit v1.2.3