Changeset b101b69


Ignore:
Timestamp:
01/04/24 13:31:03 (11 months ago)
Author:
ppaunovski <paunovskipavel@…>
Branches:
master
Children:
bde8b13
Parents:
24c39f9
Message:

initial classes, no inheritance yet v2

Files:
52 added
20 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • pom.xml

    r24c39f9 rb101b69  
    4040
    4141        <dependency>
     42            <groupId>org.springframework.boot</groupId>
     43            <artifactId>spring-boot-starter-data-jpa</artifactId>
     44        </dependency>
     45
     46
     47        <dependency>
    4248            <groupId>org.postgresql</groupId>
    4349            <artifactId>postgresql</artifactId>
     
    5460            <scope>test</scope>
    5561        </dependency>
    56 <!--        <dependency>-->
    57 <!--            <groupId>org.springframework.security</groupId>-->
    58 <!--            <artifactId>spring-security-test</artifactId>-->
    59 <!--            <scope>test</scope>-->
    60 <!--        </dependency>-->
     62        <dependency>
     63            <groupId>org.springframework.security</groupId>
     64            <artifactId>spring-security-test</artifactId>
     65            <scope>test</scope>
     66        </dependency>
    6167    </dependencies>
    6268
  • src/main/java/mk/ukim/finki/busngo/BusNGoApplication.java

    r24c39f9 rb101b69  
    33import org.springframework.boot.SpringApplication;
    44import org.springframework.boot.autoconfigure.SpringBootApplication;
     5import org.springframework.context.annotation.Bean;
     6import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
     7import org.springframework.security.crypto.password.PasswordEncoder;
    58
    69@SpringBootApplication
     
    1013        SpringApplication.run(BusNGoApplication.class, args);
    1114    }
     15    @Bean
     16    PasswordEncoder passwordEncoder(){
     17        return new BCryptPasswordEncoder(10);
     18    }
    1219
    1320}
  • src/main/resources/application.properties

    r24c39f9 rb101b69  
     1#
     2spring.datasource.url=jdbc:postgresql://localhost:9090/db_202324z_va_prj_busngo
     3spring.datasource.username=db_202324z_va_prj_busngo_owner
     4spring.datasource.password=d9f924580e7
     5spring.datasource.driver-class-name=org.postgresql.Driver
    16
    2 spring.datasource.url=jdbc:postgresql://localhost:5432/db_202324z_va_prj_busngo
    37
    48spring.datasource.hikari.connection-timeout=20000
    5 spring.datasource.hikari.maximum-pool-size=5
     9spring.datasource.hikari.maximum-pool-size=25
    610
    7 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
     11#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
    812spring.jpa.properties.hibernate.jdbc.non_contextual_creation=true
     13spring.jpa.properties.hibernate.default_schema=project
    914
    1015spring.jpa.hibernate.ddl-auto=validate
Note: See TracChangeset for help on using the changeset viewer.