JAVA全系列 教程
3762个小节阅读:7091k
目录
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
点击Next,设置坐标,工程路径
核对Maven的home目录,仓库路径,点击Finish,完成公共工程创建。
pom.xml文件内容如下:
xxxxxxxxxx
<?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.itbaizhan</groupId>
<artifactId>cloud-demo-common</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>
Constant.java文件,保存整个项目所有工程需要用到的一些常量
xxxxxxxxxx
package com.itbaizhan.utils;
public class Constant {
//获取token的uri
public static String get_token_uri = "http://localhost:4006/oauth/token";
//oauth2验证token的url
public static String check_token_url = "http://localhost:4006/oauth/check_token";
//资源id
public static String resource_id = "cloud-demo-order";
//client id
public static String client_id = "itbaizhan_cloud_demo";
//客户密码
public static String client_secret = "abcde";
//jwt签名密钥
public static String sign_key = "itbaizhan123";
//grant type密码类型
public static String grant_type_pwd = "password";
//grant type刷新令牌类型
public static String grant_type_refresh = "refresh_token";
}