Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f6bbbfbb
authored
Apr 23, 2021
by
zhoujinghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置文件修改
1 parent
60efc1fb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
4 deletions
nafmii-admin/pom.xml
nafmii-admin/src/main/java/org/nafmii/nafmiiadmin/mapper/TStudentMapper.java
nafmii-admin/src/main/resources/mapper/TStudentMapper.xml
nafmii-app/pom.xml
nafmii-app/src/main/java/org/nafmii/NafmiiAppApplication.java
nafmii-app/src/main/resources/application.properties
nafmii-admin/pom.xml
View file @
f6bbbfb
...
...
@@ -36,6 +36,11 @@
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper-spring-boot-starter
</artifactId>
</dependency>
<!--Mysql数据库驱动-->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<!--MyBatis分页插件-->
<dependency>
<groupId>
com.github.pagehelper
</groupId>
...
...
nafmii-admin/src/main/java/org/nafmii/nafmiiadmin/mapper/TStudentMapper.java
View file @
f6bbbfb
...
...
@@ -4,10 +4,11 @@ import org.apache.ibatis.annotations.Mapper;
import
org.apache.ibatis.annotations.Param
;
import
org.nafmii.nafmiiadmin.po.TStudent
;
import
org.nafmii.nafmiiadmin.po.TStudentExample
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@
Mapper
@
Repository
public
interface
TStudentMapper
{
long
countByExample
(
TStudentExample
example
);
...
...
nafmii-admin/src/main/resources/mapper/TStudentMapper.xml
View file @
f6bbbfb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.nafmii.nafmii
mbg
.mapper.TStudentMapper"
>
<mapper
namespace=
"org.nafmii.nafmii
admin
.mapper.TStudentMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"org.nafmii.nafmiiadmin.po.TStudent"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
...
...
nafmii-app/pom.xml
View file @
f6bbbfb
...
...
@@ -109,6 +109,10 @@
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-admin-starter-server
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<!--Knife4j API文档生产工具-->
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
...
...
nafmii-app/src/main/java/org/nafmii/NafmiiAppApplication.java
View file @
f6bbbfb
...
...
@@ -7,7 +7,7 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
}
)
@SpringBootApplication
()
@EnableEurekaClient
@EnableSwagger2
@EnableFeignClients
...
...
nafmii-app/src/main/resources/application.properties
View file @
f6bbbfb
...
...
@@ -8,4 +8,9 @@ logging.pattern.dateformat=yyyy-MM-dd hh:MM:ss
eureka.client.serviceUrl.defaultZone
=
http://127.0.0.1:8761/eureka
eureka.instance.statusPageUrl
=
http://127.0.0.1:8002/swagger-ui.html
eureka.instance.prefer-ip-
address
=
true
eureka.instance.instance-
id
=
${spring.cloud.client.ip-address}:${server.port}
\ No newline at end of file
eureka.instance.instance-
id
=
${spring.cloud.client.ip-address}:${server.port}
spring.datasource.url
=
jdbc:mysql://140.143.249.40:3308/edz?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.password
=
123456
spring.datasource.username
=
root
spring.datasource.driver-class-
name
=
com.mysql.cj.jdbc.Driver
mybatis.mapper-
locations
=
classpath:mapper/*.xml
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment