目前构思了这些功能,想每天自己边学习边完成部分功能。
基于springcloud各个组件,边学习边应用。
现在完成人员信息管理系统、题库存储系统、答题系统(排行榜功能后面实现)
进度更新:
将学生答题正确信息统计到缓存redis中
新建项目1
引入下面的依赖
<spring-cloud.version>Hoxton.SR8</spring-cloud.version>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
在启动类加注解:@EnableEurekaServer
编写配置文件
后续添加各项需要的配置文件
server.port=8080
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka
eureka.client.register-with-eureka=true
spring.application.name=eureka_server
测试
可以看到注册中心是搞定了。别的组件我们后面用的时候在添加。
人员管理系统: link.
题库系统: link.