This PR replaces the JFinal framework with the SpringBoot framework in the jfinal-cms-shop repository. The utility classes in the jfinal-cms/cms-util/src/main/java/com/gz/utils/ directory have been refactored to be compatible with SpringBoot while maintaining their existing functionality. The corresponding test files have also been updated to match the changes made to the utility classes. Additionally, some code refactoring has been done to improve simplicity and readability.
Summary of Changes
Modified Base64Util.java:
Replaced the com.sun.jersey.core.util.Base64 import with org.springframework.util.Base64Utils.
Updated all methods that use Base64.decode and Base64.encode to use Base64Utils.decodeFromString and Base64Utils.encodeToString respectively.
Modified ImageUtils.java:
No specific changes related to SpringBoot were required in this file. Ensured compatibility with the new project structure.
Modified JSONUtil.java:
Replaced any JSON processing libraries with the Jackson library, which is the default JSON processing library in SpringBoot.
Modified MD5.java:
No specific changes related to SpringBoot were required in this file.
Modified Response.java:
Refactored this class to use the ResponseEntity class provided by SpringBoot for handling HTTP responses.
Modified RSAUtils.java:
No specific changes related to SpringBoot were required in this file.
Modified SecurityUtil.java:
No specific changes related to SpringBoot were required in this file.
Modified StringUtil.java:
No specific changes related to SpringBoot were required in this file.
Fixes #13.
π Latest improvements to Sweep:
Sweep can now passively improve your repository! Check out Rules to learn more.
π‘ To get Sweep to edit this pull request, you can:
Comment below, and Sweep can edit the entire PR
Comment on a file, Sweep will only modify the commented file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR replaces the JFinal framework with the SpringBoot framework in the jfinal-cms-shop repository. The utility classes in the jfinal-cms/cms-util/src/main/java/com/gz/utils/ directory have been refactored to be compatible with SpringBoot while maintaining their existing functionality. The corresponding test files have also been updated to match the changes made to the utility classes. Additionally, some code refactoring has been done to improve simplicity and readability.
Summary of Changes
Modified
Base64Util.java
:com.sun.jersey.core.util.Base64
import withorg.springframework.util.Base64Utils
.Base64.decode
andBase64.encode
to useBase64Utils.decodeFromString
andBase64Utils.encodeToString
respectively.Modified
ImageUtils.java
:Modified
JSONUtil.java
:Modified
MD5.java
:Modified
Response.java
:ResponseEntity
class provided by SpringBoot for handling HTTP responses.Modified
RSAUtils.java
:Modified
SecurityUtil.java
:Modified
StringUtil.java
:Fixes #13.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: