Changeset 1ad8e64 for trip-planner


Ignore:
Timestamp:
11/29/21 22:35:07 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
84d0fbb
Parents:
8d391a1
Message:

spring security

Location:
trip-planner
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • trip-planner/pom.xml

    r8d391a1 r1ad8e64  
    8080            <version>3.0.3</version>
    8181        </dependency>
     82        <!--SPRING SECURITY-->
     83        <dependency>
     84            <groupId>org.springframework.boot</groupId>
     85            <artifactId>spring-boot-starter-security</artifactId>
     86        </dependency>
     87        <dependency>
     88            <groupId>com.google.code.gson</groupId>
     89            <artifactId>gson</artifactId>
     90            <version>2.8.5</version>
     91        </dependency>
     92        <dependency>
     93            <groupId>io.jsonwebtoken</groupId>
     94            <artifactId>jjwt</artifactId>
     95            <version>0.9.0</version>
     96        </dependency>
     97        <dependency>
     98            <groupId>org.springframework.boot</groupId>
     99            <artifactId>spring-boot-starter-validation</artifactId>
     100        </dependency>
    82101    </dependencies>
    83102
  • trip-planner/src/main/java/finki/diplomska/tripplanner/TripPlannerApplication.java

    r8d391a1 r1ad8e64  
    44import org.springframework.boot.SpringApplication;
    55import org.springframework.boot.autoconfigure.SpringBootApplication;
     6import org.springframework.context.annotation.Bean;
     7import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
    68
    79@SpringBootApplication
     
    911public class TripPlannerApplication {
    1012
     13    @Bean
     14    BCryptPasswordEncoder bCryptPasswordEncoder(){
     15        return new BCryptPasswordEncoder();
     16    }
    1117    public static void main(String[] args) {
    1218        SpringApplication.run(TripPlannerApplication.class, args);
  • trip-planner/src/main/java/finki/diplomska/tripplanner/models/dto/PlannerDto.java

    r8d391a1 r1ad8e64  
    33import lombok.Data;
    44
    5 import java.util.List;
    65
    76@Data
Note: See TracChangeset for help on using the changeset viewer.