Skip to content

Commit

Permalink
Merge pull request #47 from depromeet/fix/LS-35
Browse files Browse the repository at this point in the history
fix/LS-35: 컴포넌트 스캔 오류 해결
  • Loading branch information
clean2001 authored Jul 27, 2024
2 parents 9a903f9 + 52e1d60 commit 70a5f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions layer-api/src/main/java/org/layer/LayerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@OpenAPIDefinition(servers = {
@Server(url = "https://api.layerapp.io", description = "운영서버"),
@Server(url = "http://localhost:8080", description = "개발서버")})
@SpringBootApplication
@EnableJpaAuditing
@ComponentScan(basePackages = {"org.layer.domain.common"})
public class LayerApplication {
public static void main(String[] args) {
SpringApplication.run(LayerApplication.class, args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import java.time.LocalDateTime;

import org.springframework.stereotype.Component;

@Component
public class RealTime implements Time {
@Override
public LocalDateTime now() {
Expand Down

0 comments on commit 70a5f7e

Please sign in to comment.