Skip to content

Commit

Permalink
updated pom and config
Browse files Browse the repository at this point in the history
  • Loading branch information
geekymon2 committed May 9, 2024
1 parent d18c605 commit 1e4d4e9
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 41 deletions.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@
<build>
<finalName>car-listing-service</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<configuration>
<mainClass>com.geekymon2.carmarketplace.carlistingservice.CarListingServiceApplication</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down
49 changes: 49 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
spring:
application:
name: car-listing-service
datasource:
url: jdbc:mysql://localhost:3306/carlistdbdev
driverClassName: com.mysql.jdbc.Driver
username: root
password: 'P@ssw0rd'
jpa:
database-platform: org.hibernate.dialect.MySQL55Dialect
defer-datasource-initialization: true
show-sql: true
generate-ddl: true
hibernate:
ddl-auto: create-drop
properties:
hibernate:
'[format_sql]': true
sql:
init:
platform: mysql
data-locations: classpath:data-mysql.sql
mode: always
config:
import: optional:configserver:http://localhost:8888
cloud:
config:
uri: http://localhost:8888
fail-fast: false
retry:
maxAttempts: 20

eureka:
client:
enabled: false
serviceUrl:
defaultZone: http://localhost:8761/eureka
instance:
prefer-ip-address: true

server:
servlet:
context-path: /api/car-listing-service

api-config:
jwt-config:
jwt-disabled: true
jwt-secret: secret
jwt-validity: 20
44 changes: 3 additions & 41 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,11 @@
spring:
application:
name: car-listing-service
datasource:
url: jdbc:mysql://localhost:3306/carlistdbdev
driverClassName: com.mysql.jdbc.Driver
username: root
password: 'P@ssw0rd'
jpa:
database-platform: org.hibernate.dialect.MySQL55Dialect
defer-datasource-initialization: true
show-sql: true
generate-ddl: true
hibernate:
ddl-auto: create-drop
properties:
hibernate:
'[format_sql]': true
sql:
init:
platform: mysql
data-locations: classpath:data-mysql.sql
mode: always
config:
import: optional:configserver:http://localhost:8888
import: optional:configserver:http://config-server:8888
cloud:
config:
uri: http://localhost:8888
uri: http://config-server:8888
fail-fast: false
retry:
maxAttempts: 20

eureka:
client:
enabled: false
serviceUrl:
defaultZone: http://localhost:8761/eureka
instance:
prefer-ip-address: true

server:
servlet:
context-path: /api/car-listing-service

api-config:
jwt-config:
jwt-disabled: true
jwt-secret: secret
jwt-validity: 20
maxAttempts: 20

0 comments on commit 1e4d4e9

Please sign in to comment.