Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyitao committed Jul 20, 2020
1 parent ca1a61d commit c9e4756
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.daxiang</groupId>
<artifactId>server</artifactId>
<version>0.7.1</version>
<version>0.7.2</version>
<packaging>jar</packaging>

<properties>
Expand All @@ -18,15 +18,15 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<version>2.1.4.RELEASE</version>
<relativePath/>
</parent>

<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>2.0.0</version>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -98,4 +98,4 @@
</plugins>
</build>

</project>
</project>
1 change: 1 addition & 0 deletions src/main/java/com/daxiang/model/vo/AgentVo.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
@Data
public class AgentVo {
private String instanceId;
private String ip;
private Integer port;
private String osName;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/daxiang/service/AgentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private AgentVo createAgentVoWithoutDevices(Instance agent) {
}

AgentVo agentVo = new AgentVo();
agentVo.setInstanceId(agent.getId().getValue());
agentVo.setIp(uri.getHost());
agentVo.setPort(uri.getPort());

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ server.port=8887
db-url=127.0.0.1:3306/daxiang
db-username=root
db-password=root
spring.datasource.url=jdbc:mysql://${db-url}?characterEncoding=utf-8&useSSL=false
spring.datasource.url=jdbc:mysql://${db-url}?characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
spring.datasource.username=${db-username}
spring.datasource.password=${db-password}
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

#mybatis日志打印
#logging.level.com.daxiang.mbg.mapper=debug
#logging.level.com.daxiang.dao=debug
#logging.level.com.daxiang.dao=debug

0 comments on commit c9e4756

Please sign in to comment.