Update run config,doc

2.1.1
shengzhaoli.shengz 2021-11-20 22:55:35 +08:00
parent ab1396f93d
commit 3a3d3317dc
2 changed files with 5 additions and 4 deletions

View File

@ -170,7 +170,7 @@ Base on Spring-Boot
Date: 2021-10-23 / ---
</p>
<ol>
<li><p>升级spring-boot v2.4.2,改变工程结构为jar模式</p></li>
<li><p>升级spring-boot v2.4.2,改变可直接运行 SpringOauthServerApplication.java</p></li>
</ol>
<br/>
</li>

View File

@ -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).