3 начало

This commit is contained in:
bekodeg 2024-05-21 15:45:29 +04:00
parent 1f34a355bc
commit 3aed9456e6
5 changed files with 13 additions and 15 deletions

View File

@ -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'
}

View File

@ -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";
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}