Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Semyon Kirekov SimonHarmonicMinor

👋
View GitHub Profile
View TestSpringBootConf.java
public class Person {
public Person() {
System.out.println("I was created");
}
@PostConstruct
private void init() {
System.out.println("I was constructed");
}
}
View TestSpringBoot.java
@Entity
@Setter
@Getter
public class Book {
@Id
@GeneratedValue
private Long id;
private String name;
private String genre;
}