3 начало
This commit is contained in:
parent
1f34a355bc
commit
3aed9456e6
@ -22,8 +22,14 @@ ext {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||||
implementation 'org.springframework.modulith:spring-modulith-starter-core'
|
implementation 'org.springframework.modulith:spring-modulith-starter-core'
|
||||||
|
|
||||||
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.4.0'
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.4.0'
|
||||||
|
|
||||||
implementation 'org.modelmapper:modelmapper:3.1.1'
|
implementation 'org.modelmapper:modelmapper:3.1.1'
|
||||||
|
|
||||||
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||||
|
implementation 'com.h2database:h2:2.2.224'
|
||||||
|
|
||||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
testImplementation 'org.springframework.modulith:spring-modulith-starter-test'
|
testImplementation 'org.springframework.modulith:spring-modulith-starter-test'
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package com.example.demo.core.config;
|
package com.example.demo.core.config;
|
||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public static final String API_URL = "/api_2";
|
public static final String API_URL = "/api_3";
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
package com.example.demo.games.repository;
|
package com.example.demo.games.repository;
|
||||||
|
|
||||||
import com.example.demo.core.repository.MapRepository;
|
|
||||||
import com.example.demo.games.model.GameEntity;
|
import com.example.demo.games.model.GameEntity;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
|
||||||
@Repository
|
public interface GameRepository extends CrudRepository<GameEntity, Long> {
|
||||||
public class GameRepository extends MapRepository<GameEntity> {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
package com.example.demo.tables.repository;
|
package com.example.demo.tables.repository;
|
||||||
|
|
||||||
import com.example.demo.core.repository.MapRepository;
|
|
||||||
import com.example.demo.tables.model.TableEntity;
|
import com.example.demo.tables.model.TableEntity;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
|
||||||
@Repository
|
public interface TableRepository extends CrudRepository<TableEntity, Long> {
|
||||||
public class TableRepository extends MapRepository<TableEntity> {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
package com.example.demo.users.repository;
|
package com.example.demo.users.repository;
|
||||||
|
|
||||||
import com.example.demo.core.repository.MapRepository;
|
|
||||||
import com.example.demo.users.model.UserEntity;
|
import com.example.demo.users.model.UserEntity;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
public interface UserRepository extends CrudRepository<UserEntity, Long> {
|
||||||
@Repository
|
|
||||||
public class UserRepository extends MapRepository<UserEntity> {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user