id.co.teleanjar.ppobws.PpobwsApp.java Source code

Java tutorial

Introduction

Here is the source code for id.co.teleanjar.ppobws.PpobwsApp.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package id.co.teleanjar.ppobws;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 *
 * @author moe
 */

@SpringBootApplication
public class PpobwsApp {

    public static void main(String[] args) {
        SpringApplication.run(PpobwsApp.class, args);
    }

    @Bean
    public PasswordEncoder getPasswordEncoder() {
        return new BCryptPasswordEncoder(13);
    }

}