Skip to content

Instantly share code, notes, and snippets.

@sheelprabhakar
Last active March 6, 2021 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheelprabhakar/7870b6f8d081a021a7dc4b5e3f392e57 to your computer and use it in GitHub Desktop.
Save sheelprabhakar/7870b6f8d081a021a7dc4b5e3f392e57 to your computer and use it in GitHub Desktop.
Spring boot service
@Service
public class WeatherLogServiceImpl implements WeatherLogService {
private final WeatherRepository repository;
@Autowired
WeatherLogServiceImpl(final WeatherRepository repository) {
this.repository = repository;
}
@Override
public void saveLogs(WeatherLog log) throws InterruptedException {
// this.logQue.put(log);
this.repository.save(log);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment