Skip to content

Commit 826fe3c

Browse files
committed
fix: 빈 스캔 오류 해결
1 parent b54d4ae commit 826fe3c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/com/example/log4u/common/config/MySqlConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"com.example.log4u.domain.media",
2828
"com.example.log4u.domain.reports",
2929
"com.example.log4u.domain.supports",
30-
"com.example.log4u.domain.user"
30+
"com.example.log4u.domain.user",
31+
"com.example.log4u.domain.subscription"
3132
},
3233
entityManagerFactoryRef = "mysqlEntityManagerFactory",
3334
transactionManagerRef = "mysqlTransactionManager"
@@ -55,7 +56,8 @@ public LocalContainerEntityManagerFactoryBean mysqlEntityManagerFactory() {
5556
"com.example.log4u.domain.media",
5657
"com.example.log4u.domain.reports",
5758
"com.example.log4u.domain.supports",
58-
"com.example.log4u.domain.user"
59+
"com.example.log4u.domain.user",
60+
"com.example.log4u.domain.subscription"
5961
);
6062
HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
6163
vendorAdapter.setShowSql(true);

src/main/java/com/example/log4u/domain/subscription/repository/SubscriptionRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
import java.util.Optional;
55

66
import org.springframework.data.jpa.repository.JpaRepository;
7+
import org.springframework.stereotype.Repository;
78

89
import com.example.log4u.domain.subscription.PaymentStatus;
910
import com.example.log4u.domain.subscription.entity.Subscription;
1011

12+
@Repository
1113
public interface SubscriptionRepository extends JpaRepository<Subscription, Long> {
1214
Optional<Subscription> findByUserIdAndCreatedAtBeforeAndPaymentStatusOrderByCreatedAtDesc(Long userId,
1315
LocalDateTime now,

0 commit comments

Comments
 (0)