代码拉取完成,页面将自动刷新
Spring fast server is a low code development library that integrates many excellent back-end technical frameworks. It automatically generates low code content through the generator module, including JDBC, cache, task, Excel, word, search, secure and other support
Quickly generate a project with the following code:
<mirror>
<id>maven-public</id>
<mirrorOf>*</mirrorOf>
<name>maven-public</name>
<url>http://36.133.250.221:12960/repository/maven-public/</url>
</mirror>
<dependency>
<groupId>com.sxjdframework</groupId>
<artifactId>spring-fast-server-generator</artifactId>
<version>${last.version}</version>
</dependency>
import com.sxjdframework.generator.engine.Engine;
import com.sxjdframework.generator.engine.VelocityEngine;
public class Generator {
public static void main(String[] args){
//配置生成引擎
//数据库支持可查看 com.sxjdframework.generator.enums.DBType
Engine engine = VelocityEngine.getInstance(
"jdbc:mysql://数据库URL",
"数据库用户名",
"数据库密码",
"项目名称",
"项目包名");
//生成,生成默认在D:\\tmp文件夹下
//可通过engine.setBaseDir("项目生成地址")设置;
File zip = engine.zip();
}
}
src
|__main
|__java
| |__package
| |__config
| | |__MyBatisMetaHandler.java
| |__controller
| | |__Controller.java
| |__entity
| | |__Entity.java
| |__filter
| | |__CustomFilter.java
| |__login
| | |__SmsProvider.java
| | |__UserDetailProvider.java
| | |__UserDetailToken.java
| |__mapper
| | |__mapper.interface
| |__protocol
| | |__ProtocolConfig.java
| | |__ResultCode.enum
| |__service
| | |__Service.java
| | |__impl
| | |__Impl.interface
| |__vo
| | |__Query.java
| |__AppServer.java
|__resource
|__mapper
| |__mapper.xml
|__application.yml
secure:
token-expire: 1800
expire-unit: SECONDS
password-mode: MD5
verification-code: false
#Support mobile phone login, which needs to be implementedcom.sxjdframework.shiro.spi.SmsService接口
mobile-login-supported: true
#support email login
email-login-supported: true
#Whether the password transmission process is encrypted (encryption type) AES(Mode.CBC, Padding.PKCS5Padding, Base64.decode(secretKey), Base64.decode(iv))
transmission-encryption: false
#system white list
ignored-url:
#website logo
- /favicon.ico
# Knife4j
- /webjars/**
- /doc.html
- /swagger-resources/**
- /*/v2/api-docs
- /v2/api-docs
The login interface provided by the framework is:
Login : POST http://172.25.224.1:8080/api/auth/login
Encryption : GET http://172.25.224.1:8080/api/auth/aes-iv
SMS Code : GET http://172.25.224.1:8080/api/auth/sms
Verify Code : GET http://172.25.224.1:8080/api/auth/code
the parameters required for these interfaces are:
Login Parameter :
{
"username": "Enter user name in password and verification code mode, enter mobile number in mobile number mode, and enter email in email mode",
"password": "User name password",
"unique": "Password encryption input encryption unique, the provider is encryption",
"type": "Three modes of password, mobile and email are provided,The optional values are: PASSWORD | MOBILE | EMAIL",
"code": "Turn on the verification code mobile number mode and enter the verification code"
}
Encryption Parameter :
Unwanted
SMS Code Parameter :
{
"phone": "User mobile number"
}
Verify Code Parameter :
{
"username": "User name or email"
}
2022-08-27 17:49:11.649 INFO 26932 --- [ main] c.s.web.bootstrap.InitSwaggerConsole :
The project doc document address is:
Swagger-ui : http://172.25.224.1:8080/swagger-ui.html
Document : http://172.25.224.1:8080/doc.html
The use of the framework can be directly started through the generated annotations
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。