Skip to content

Commit

Permalink
Merge pull request #8 from Lunawood/master
Browse files Browse the repository at this point in the history
fix:NULL Pointer Exception 버그 해결, @Autowired 추가
  • Loading branch information
Lunawood authored Dec 1, 2024
2 parents 086481c + 6ab67af commit 46bedd5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class HomeController {
// Input : 파라미터 AccessToken
// Output(200) : 홈페이지[이미 가입한 회원]
// Output(401) : 유효하지 않은 토큰
// Output(402) : 리프레시토큰으로 토큰 재발급 필요.
// Output(500) : 서버에러
@GetMapping("")
public ResponseEntity<?> home(@RequestHeader("AccessToken") String AccessToken) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.example.server.repository;

import java.time.LocalDateTime;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.Modifying;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.server.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.server.model.User;
Expand All @@ -10,6 +11,7 @@
@Service
@RequiredArgsConstructor
public class UserService {
@Autowired
private UserRepository userRepository;

public User getPetInformation(Long id) throws Exception{
Expand Down

0 comments on commit 46bedd5

Please sign in to comment.