-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
done #192
base: main
Are you sure you want to change the base?
done #192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor mistakes
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@Column(nullable = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unique constraint
|
||
@RequiredArgsConstructor | ||
@Service | ||
public class PullDataServiceImpl implements PullDataService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class PullDataServiceImpl implements PullDataService { | |
public class CharacterClientImpl implements CharacterClient { |
|
||
@RequiredArgsConstructor | ||
@Component | ||
public class RickAndMortyClientImpl implements RickAndMortyClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class RickAndMortyClientImpl implements RickAndMortyClient { | |
public class CharacterServiceImpl implements CharacterService { |
@RequiredArgsConstructor | ||
@Service | ||
public class PullDataServiceImpl implements PullDataService { | ||
@Value("https://rickandmortyapi.com/api/character") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Value("https://rickandmortyapi.com/api/character") | |
@Value("${rick-and-morty.url}") |
add rick-and-morty.url=https://rickandmortyapi.com/api/character
to application.properties
import org.springframework.web.client.RestTemplate; | ||
|
||
@RequiredArgsConstructor | ||
@Service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Service | |
@Component |
public long count(); | ||
|
||
public List<CharacterRickAndMorty> findByNameContaining(String name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public long count(); | |
public List<CharacterRickAndMorty> findByNameContaining(String name); | |
long count(); | |
List<CharacterRickAndMorty> findByNameContaining(String name); |
No description provided.