Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
license-spring-boot-starter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄营
license-spring-boot-starter
Commits
31ac7e1c
Commit
31ac7e1c
authored
Jan 12, 2024
by
hy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
24986356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
LicenseManager.java
src/main/java/com/tbyf/license/LicenseManager.java
+0
-1
LicenseInstallationServlet.java
...byf/license/autoconfigure/LicenseInstallationServlet.java
+0
-1
No files found.
src/main/java/com/tbyf/license/LicenseManager.java
View file @
31ac7e1c
...
...
@@ -103,7 +103,6 @@ public class LicenseManager implements InitializingBean {
Files
.
createDirectories
(
dir
);
Path
licensePath
=
dir
.
resolve
(
Constants
.
LICENSE_FILE_NAME
);
if
(
Files
.
isRegularFile
(
licensePath
)
&&
Files
.
exists
(
licensePath
))
{
uninstall
();
install
(
licensePath
.
toString
());
}
}
...
...
src/main/java/com/tbyf/license/autoconfigure/LicenseInstallationServlet.java
View file @
31ac7e1c
...
...
@@ -34,7 +34,6 @@ public class LicenseInstallationServlet extends HttpServlet {
Path
dest
=
Paths
.
get
(
properties
.
getLocation
(),
Constants
.
LICENSE_FILE_NAME
).
toAbsolutePath
().
normalize
();
Files
.
copy
(
is
,
dest
,
StandardCopyOption
.
REPLACE_EXISTING
);
this
.
licenseManager
.
uninstall
();
this
.
licenseManager
.
install
(
dest
.
toString
());
resp
.
setStatus
(
HttpStatus
.
OK
.
value
());
resp
.
setContentType
(
Constants
.
TEXT_PLAIN_MEDIA_TYPE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment