Skip to content

Commit

Permalink
refactor: change database name to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdudkin committed Sep 14, 2024
1 parent 1cbde7b commit c00715a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ public PasswordEncoder passwordEncoder() {

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http
// @formatter:off
http
.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(requests -> requests
.cors(AbstractHttpConfigurer::disable)
.authorizeHttpRequests((authz) -> authz
.anyRequest().permitAll())
.sessionManagement(session -> session.sessionCreationPolicy(STATELESS))
.build();
.sessionManagement(session -> session.sessionCreationPolicy(STATELESS));
// @formatter:on
return http.build();
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.datasource.url=jdbc:postgresql://localhost:5432/library_books_db
spring.datasource.url=jdbc:postgresql://localhost:5432/libraryBooksDB
spring.datasource.username=postgres
spring.datasource.password=root
spring.datasource.driver-class-name=org.postgresql.Driver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.datasource.url=jdbc:postgresql://localhost:5432/library_db
spring.datasource.url=jdbc:postgresql://localhost:5432/libraryDB
spring.datasource.username=postgres
spring.datasource.password=root
spring.datasource.driver-class-name=org.postgresql.Driver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.datasource.url=jdbc:postgresql://localhost:5432/library_loans_db
spring.datasource.url=jdbc:postgresql://localhost:5432/libraryLoansDB
spring.datasource.username=postgres
spring.datasource.password=root
spring.datasource.driver-class-name=org.postgresql.Driver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.datasource.url=jdbc:postgresql://localhost:5432/library_users_db
spring.datasource.url=jdbc:postgresql://localhost:5432/libraryUsersDB
spring.datasource.username=postgres
spring.datasource.password=root
spring.datasource.driver-class-name=org.postgresql.Driver
Expand Down

0 comments on commit c00715a

Please sign in to comment.