# spring-fast-server **Repository Path**: lee_coding/spring-fast-server ## Basic Information - **Project Name**: spring-fast-server - **Description**: Spring-fast-serve是一个快速开发的低代码开发库,整合多种后端常用开源技术,自动集成登录流程,通过Generator模块执行生成,包含有对JDBC,ES,CACHE,TASK的支持。自动生成CRUD,自定义HTTP/HTTPS返回Protocol格式,自定义CRUD校验内容,无需SQL,注解Condition实现配置式SQL查询等 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 0 - **Created**: 2022-08-16 - **Last Updated**: 2025-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, SpringBoot, Shiro, Generator, MyBatis ## README # spring-fast-server #### Introduce 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 #### QuickStart *Quickly generate a project with the following code:* * modify maven image address ```xml maven-public * maven-public http://36.133.250.221:12960/repository/maven-public/ ``` * add dependency ```xml com.sxjdframework spring-fast-server-generator ${last.version} ``` * create build ```java 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(); } } ``` * project structure ```text 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 ``` * project security configuration ```yaml 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 ``` * example of project startup log ```log 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**