SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- package pl.edu.ug.tent.springintro.service;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.beans.factory.annotation.Qualifier;
- import org.springframework.stereotype.Service;
- import pl.edu.ug.tent.springintro.domain.Person;
- @Service
- public class PersonService {
- public Person getPrezes() {
- return prezes;
- }
- public Person getWiceprezes() {
- return wiceprezes;
- }
- public Person getSekretarka() {
- return sekretarka;
- }
- @Autowired
- @Qualifier("prezes")
- Person prezes;
- @Autowired
- @Qualifier("wiceprezes")
- Person wiceprezes;
- @Autowired
- @Qualifier("sekretarka")
- Person sekretarka;
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.