Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Person {
- private final String firstName;
- private final String lastName;
- private final String city;
- private final int age;
- @Autowired
- private final DevicesService devicesService; //It will not work
- public Person(String firstName, String lastName, String city, int age) {
- this.firstName = firstName;
- this.lastName = lastName;
- this.city = city;
- this.age = age;
- }
- public String getFirstName() {
- return firstName;
- }
- public String getLastName() {
- return lastName;
- }
- public String getCity() {
- return city;
- }
- public int getAge() {
- return age;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement