Skip to content

Commit

Permalink
Added jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-shiati committed Feb 28, 2022
1 parent 6b374a0 commit 53e7bbd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
Binary file added jars/where-money-api.jar
Binary file not shown.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
</dependencies>

<build>
<finalName>where-money-api</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/asrez/wheremoney/api/DataInitializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Arrays;


Expand All @@ -31,6 +32,7 @@ public void run(String... args) throws Exception {
.username(username)
.password(this.passwordEncoder.encode(password))
.name("Admin")
.createdDate(LocalDateTime.now())
.familyName("Admin")
.roles(Arrays.asList("ROLE_USER", "ROLE_ADMIN"))
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;

@EntityScan("package com.asrez.wheremoney.api.entity")
@SpringBootApplication
public class WhereMoneyApplication {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class DatabaseConfig {
@Bean
Expand All @@ -16,4 +17,5 @@ public HikariDataSource hikariDataSource() {
.type(HikariDataSource.class)
.build();
}

}
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spring:
jpa:
hibernate:
ddl-auto: update
show_sql: true
mvc:
pathmatch:
matching-strategy: ant_path_matcher
Expand Down

0 comments on commit 53e7bbd

Please sign in to comment.