Last change
on this file since bde8b13 was bde8b13, checked in by ppaunovski <paunovskipavel@…>, 6 months ago |
All 3 main use cases implemented.
- Starting a commute
- Writing a ticket
- Starting an instance of a Bus Line
|
-
Property mode
set to
100644
|
File size:
622 bytes
|
Rev | Line | |
---|
[24c39f9] | 1 | package mk.ukim.finki.busngo;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.boot.SpringApplication;
|
---|
| 4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
---|
[b101b69] | 5 | import org.springframework.context.annotation.Bean;
|
---|
| 6 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
---|
| 7 | import org.springframework.security.crypto.password.PasswordEncoder;
|
---|
[24c39f9] | 8 |
|
---|
| 9 | @SpringBootApplication
|
---|
| 10 | public class BusNGoApplication {
|
---|
| 11 |
|
---|
| 12 | public static void main(String[] args) {
|
---|
[bde8b13] | 13 |
|
---|
| 14 |
|
---|
[24c39f9] | 15 | SpringApplication.run(BusNGoApplication.class, args);
|
---|
| 16 | }
|
---|
[b101b69] | 17 | @Bean
|
---|
| 18 | PasswordEncoder passwordEncoder(){
|
---|
| 19 | return new BCryptPasswordEncoder(10);
|
---|
| 20 | }
|
---|
[24c39f9] | 21 |
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.