開發一個博客系統文章數:菜單文章都沒更新完
搭建eureka註冊中心 (本文)https://segmentfault.com/a/11...
搭建Beans編寫Token解析註解 https://segmentfault.com/a/11...
搭建權限管理系統 https://segmentfault.com/a/11...
搭建後臺管理系統 https://segmentfault.com/a/11...
前端Fetch請求封裝 https://segmentfault.com/a/11...前端
簡介:此係統設計基於 ++SpringCloud + vue(ElementUI) + mySQL++,系統涉及資源權限管理,自定義註解,自定義註解Token解析,先後端分離,Fetch封裝,Vue前端路由權限管理等知識。vue
此係統主要是爲了學習實踐,也是爲了完成我的主頁網站而進行的開發。本人剛畢業對不少知識掌握不深,但願各位大神能多多指點
我的主頁:http://vidanao.com/java
本系統分爲:web
簡介:
主要打包爲jar在其餘系統中引用,包含公共Entity,字典枚舉類,token解析類等其餘工具類spring
簡介:
管理用戶(名,密碼,token,基本信息),管理資源和用戶資源權限管理,主要爲其餘系統提供羣星(服務)接口apache
簡介:
文件存儲,文件下載地址管理segmentfault
簡介:
使用權限管理系統的相關服務,管理系統配置,數據設計字典個,系統配置的文件資源路徑管理後端
簡介:
博客系統,文章增,刪,改,查;包括文件上傳,下載websocket
前言:此係統沒有具體的需求設計,主要從權限管理系統和Beans系統開始app
我使用的是IDEA maven建立(eureka註冊中心)
pom.xml
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.server</groupId> <artifactId>eureka</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>eureka</name> <description>Eureka Server project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.6.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <spring-cloud.version>Camden.SR6</spring-cloud.version> </properties> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-feign</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka-server</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
啓動類
@EnableEurekaServer @SpringBootApplication public class EurekaserverApplication { public static void main(String[] args) { SpringApplication.run(EurekaserverApplication.class, args); } }
配置文件application.properties
eureka.client.register-with-eureka=false eureka.client.fetch-registry=false #eureka.instance.hostname=peer1 server.port=8081 eureka.client.serviceUrl.defaultZone=http://127.0.0.1:${server.port}/eureka/ spring.application.name=eureka #spring.profiles=peer1 security.basic.enabled=true security.user.name=system security.user.password=123456