pull/4/head
3y 3 years ago
parent 164acd36ab
commit 3d2996cacb

@ -15,7 +15,7 @@ import org.springframework.stereotype.Service;
import java.util.Date; import java.util.Date;
/** /**
* @author 3y * @author 3y.
* @date 2021/12/12 * @date 2021/12/12
* *
*/ */

@ -13,7 +13,7 @@ import org.springframework.stereotype.Service;
/** /**
* *
* @author 3y * @author 3y.
*/ */
@Service @Service
public class DiscardMessageService { public class DiscardMessageService {

@ -63,16 +63,29 @@
<artifactId>spring-boot-starter-data-redis</artifactId> <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency> </dependency>
<!--监控.-->
<dependency> <dependency>
<groupId>com.ctrip.framework.apollo</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>apollo-client-config-data</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client</artifactId>
</dependency>
<dependency> <dependency>
<groupId>cn.monitor4all</groupId> <groupId>cn.monitor4all</groupId>
<artifactId>log-record-starter</artifactId> <artifactId>log-record-starter</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

@ -10,7 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class AustinApplication { public class AustinApplication {
public static void main(String[] args) { public static void main(String[] args) {
// TODO apollo的地址 // TODO apollo的地址.
//System.setProperty("apollo.config-service", "http://ip:7000"); //System.setProperty("apollo.config-service", "http://ip:7000");
SpringApplication.run(AustinApplication.class, args); SpringApplication.run(AustinApplication.class, args);
} }

@ -66,4 +66,4 @@ apollo:
bootstrap: bootstrap:
enabled: true enabled: true
namespaces: boss.austin namespaces: boss.austin
# tomcat / HikariPool(数据库连接池 配置) TODO # tomcat / .HikariPool(数据库连接池 配置) TODO

@ -75,13 +75,12 @@
<version>3.1.390</version> <version>3.1.390</version>
</dependency> </dependency>
<!--apollo--> <!--apollo.-->
<dependency> <dependency>
<groupId>com.ctrip.framework.apollo</groupId> <groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client-config-data</artifactId> <artifactId>apollo-client</artifactId>
<version>1.9.1</version> <version>1.9.1</version>
</dependency> </dependency>
<!--注解打印日志--> <!--注解打印日志-->
<dependency> <dependency>
<groupId>cn.monitor4all</groupId> <groupId>cn.monitor4all</groupId>
@ -96,6 +95,7 @@
<version>1.6.2</version> <version>1.6.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>

Loading…
Cancel
Save