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