-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wave.he
committed
Oct 22, 2023
1 parent
b070926
commit ecd5f5a
Showing
4 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
spring-demo/src/main/kotlin/com/example/springdemo/pojo/Beans.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.example.springdemo.pojo | ||
|
||
import org.springframework.context.annotation.PropertySource | ||
import org.springframework.stereotype.Component | ||
|
||
/** | ||
* @param id : 物流单号 | ||
* @param deliverCompany : 物流公司 | ||
* @param status : 物流状态 | ||
*/ | ||
@PropertySource("classpath:/jdbc.properties") | ||
|
||
data class Courier( | ||
val id: Int, | ||
val deliverCompany: String, | ||
val status: String, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
# mysql | ||
spring.datasource.url=jdbc:mysql://localhost:3306/mysql | ||
spring.datasource.username=admin | ||
spring.datasource.password=mysql-adm | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
|
||
# Logging settings | ||
logging.level.root=WARN | ||
logging.level.org.springframework.boot=INFO | ||
|
||
# mybatis | ||
|
||
spring.mybatis.mapper-locations=classpath:mapper/*.xml | ||
|
||
spring: | ||
datasource: | ||
url: jdbc:mysql://127.0.0.1/ST?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=true | ||
username: root | ||
password: root | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
|
||
application: | ||
name: studb | ||
|
||
server: | ||
port: 8080 | ||
|
||
mybatis: | ||
mapper-locations: classpath:mapper/*.xml | ||
type-aliases-package: com.example.studb.entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
server: | ||
# port访问的端口 | ||
port: 8888 | ||
servlet: | ||
context-path: / |