Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vivian #317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright 2016-2022 the original author or authors.
Copyright 2016-2024 the original author or authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -49,6 +49,9 @@

<scm>
<url>https://github.com/kazuki43zoo/mybatis-spring-boot-jpetstore.git</url>
<connection>scm:git:https://github.com/user/repo.git</connection>
<developerConnection>scm:git:https://github.com/user/repo.git</developerConnection>
<tag>HEAD</tag>
</scm>

<parent>
Expand Down Expand Up @@ -77,7 +80,11 @@
</properties>

<dependencies>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
Expand Down Expand Up @@ -135,6 +142,7 @@
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>10.14.0</version>
<scope>runtime</scope>
</dependency>

Expand Down
13 changes: 11 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2016-2017 the original author or authors.
# Copyright 2016-2024 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,4 +17,13 @@
spring.profiles.include=common

# DataSource settings
spring.datasource.url=jdbc:hsqldb:file:~/db/jpetstore
#spring.datasource.url=jdbc:hsqldb:file:~/db/jpetstore
spring.datasource.url=jdbc:mysql://localhost:3306/jpetstore_db
spring.datasource.username=jpetstore_user
spring.datasource.password=nccucs
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# JPA/Hibernate properties for the in-memory database
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true