From 3a3d3317dc2657215af399f72f22be86af70cf0c Mon Sep 17 00:00:00 2001 From: "shengzhaoli.shengz" Date: Sat, 20 Nov 2021 22:55:35 +0800 Subject: [PATCH] =?UTF-8?q?Update=20run=20config=EF=BC=8Cdoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- others/how_to_use.txt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 00a2b98..9789da0 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ Base on Spring-Boot Date: 2021-10-23 / ---

    -
  1. 升级spring-boot v2.4.2,改变工程结构为jar模式

  2. +
  3. 升级spring-boot v2.4.2,改变可直接运行 SpringOauthServerApplication.java


diff --git a/others/how_to_use.txt b/others/how_to_use.txt index 0d587ab..37f84d9 100644 --- a/others/how_to_use.txt +++ b/others/how_to_use.txt @@ -1,8 +1,8 @@ 使用的主要技术与版本号 -*Spring-Boot (2.1.4.RELEASE) -*spring-security-oauth2 (2.3.5.RELEASE) +*Spring-Boot (2.4.2) +*spring-security-oauth2 (2.3.8.RELEASE) 如何使用? @@ -17,8 +17,9 @@ 5.将本地项目导入到IDE(如Intellij IDEA)中,可直接run SpringOauthServerApplication.java(默认端口为8080) 另: 也可通过maven package命令将项目编译为war文件(spring-oauth-server.war), - 将war放在Tomcat中并启动(注意: 这种方式需要将application.properties加入到classpath中并正确配置数据库连接信息) + 将war放在Tomcat中并启动 或使用命令 java -jar spring-oauth-server.war + (若要使用自定义的properties则使用 java -jar spring-oauth-server.war --spring.config.location=application.properties) 6.参考oauth_test.txt(位于others目录)的内容并测试之(也可在浏览器中访问相应的地址,如: http://localhost:8080/spring-oauth-server).