Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/main/java/com/provedcode/config/PropsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@EnableConfigurationProperties(PageProperties.class)
@PropertySource("pagination.properties")
@Configuration

public class PropsConfig {
}
5 changes: 4 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ logging.level.cinema.controller=info
spring.datasource.driverClassName=org.h2.Driver
spring.h2.console.enabled=true
spring.h2.console.path=/h2
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=update
##DEFAULT PAGE PROPS
page-config.default-page-num=0
page-config.default-page-size=5
2 changes: 0 additions & 2 deletions src/main/resources/pagination.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
## DEFAULT PAGE VALUES
page-config.default-page-num=0
page-config.default-page-size=5