Первый запрос на слияние пока никто не видит #1
@ -68,7 +68,11 @@
|
||||
<artifactId>spring-kafka-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -2,8 +2,10 @@ package edu.unive.schedule;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
@SpringBootApplication
|
||||
@PropertySource("classpath:application.yml")
|
||||
public class ScheduleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -0,0 +1,18 @@
|
||||
package edu.unive.schedule.domain;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
public class Classroom {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
private String type;
|
||||
}
|
6
schedule/src/main/resources/application.yml
Normal file
6
schedule/src/main/resources/application.yml
Normal file
@ -0,0 +1,6 @@
|
||||
spring:
|
||||
application.name: spring
|
||||
datasource:
|
||||
url: jdbc:postgresql://localhost:5432/u_schedule
|
||||
username: postgres
|
||||
password: postgres
|
Loading…
x
Reference in New Issue
Block a user