Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
'@Autowired'관련 버그 수정, 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yyy9942 committed Jan 31, 2020
1 parent eebcc87 commit 61e4edd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/delfood/FoodDeliveryApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
@EnableAsync // 메서드를 비동기 방식으로 실행할 수 있도록 설정한다.
@EnableScheduling // 스케줄링을 허용한다.
public class FoodDeliveryApplication {

public static void main(String[] args) {
SpringApplication.run(FoodDeliveryApplication.class, args);
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/delfood/dao/FcmDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public class FcmDao {
@Autowired
private ObjectMapper objectMapper;

@Value("#{expire.fcm.rider}")
private static Long riderTokenExpireSecond;
@Value("${expire.fcm.rider}")
private Long riderTokenExpireSecond;

@Value("${expire.fcm.member}")
private static Long memberTokenExpireSecond;
private Long memberTokenExpireSecond;

@Value("${expire.fcm.owner}")
private static Long ownerTokenExpireSecond;
private Long ownerTokenExpireSecond;

/**
* 고객이 발급받은 토큰을 저장한다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class LocalMemoryDeliveryDao implements DeliveryDao{
private ConcurrentHashMap<String, DeliveryRiderDTO> riders;
private ConcurrentHashMap<Long, OrderStatus> orders;

@Value("rider.expire")
private static Long expireTime;
@Value("${rider.expire}")
private Long expireTime;

@Autowired
private OrderService orderService;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/delfood/dto/ItemDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public static class CacheShopDTO {

@Getter
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public static class CacheOptionDTO {
private Long id;
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/delfood/mapper/MemberMapper.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.delfood.mapper;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.delfood.dto.MemberDTO;

Expand All @@ -12,13 +11,13 @@ public interface MemberMapper {

public int insertMember(MemberDTO memberInfo);

public MemberDTO findByIdAndPassword(String id, String password);
public MemberDTO findByIdAndPassword(@Param("id") String id, @Param("password") String password);

public int updateMemberPassword(String id, String password);

public int deleteMember(String id);

int updateMemberAddress(String id, String addressCode, String addressDetail);
int updateMemberAddress(@Param("id") String id, @Param("addressCode") String addressCode, @Param("addressDetail") String addressDetail);

int idCheck(String id);

Expand Down

0 comments on commit 61e4edd

Please sign in to comment.