添加solon适配及demo

This commit is contained in:
noear 2021-05-30 22:00:29 +08:00
parent 705b565e38
commit f8f698fc3d
8 changed files with 9 additions and 7 deletions

View File

@ -21,8 +21,8 @@
<module>sa-token-core</module>
<module>sa-token-starter</module>
<module>sa-token-plugin</module>
<!-- <module>sa-token-demo/sa-token-demo-solon</module>-->
<!-- <module>sa-token-demo/sa-token-demo-springboot</module>-->
<module>sa-token-demo/sa-token-demo-solon</module>
</modules>
<!-- 开源协议 apache 2.0 -->

View File

@ -12,7 +12,7 @@ import org.noear.solon.annotation.Configuration;
/**
* [Sa-Token 权限认证] 配置类
* @author kong
*
* @author noear
*/
@Configuration
public class SaTokenConfigure {

View File

@ -10,7 +10,7 @@ import org.noear.solon.annotation.Component;
/**
* 自定义权限验证接口扩展
*/
@Component // 打开此注解保证此类被springboot扫描即可完成sa-token的自定义权限验证扩展
@Component // 打开此注解保证此类被 solon 扫描即可完成 sa-token 的自定义权限验证扩展
public class StpInterfaceImpl implements StpInterface {
/**

View File

@ -9,7 +9,8 @@ import org.noear.solon.core.handle.Context;
/**
* 全局异常处理
* 全局异常处理
* @author noear
*/
@Component
public class GlobalException implements EventListener<Exception> {

View File

@ -11,6 +11,7 @@ import org.noear.solon.annotation.Param;
/**
* 测试: 同域单点登录
* @author kong
* @author noear
*/
@Controller
@Mapping("/sso/")

View File

@ -14,7 +14,7 @@ import cn.dev33.satoken.stp.StpUtil;
/**
* 压力测试
* @author kong
*
* @author noear
*/
@Controller
@Mapping("/s-test/")

View File

@ -21,7 +21,7 @@ import org.noear.solon.annotation.Param;
/**
* 测试专用Controller
* @author kong
*
* @author noear
*/
@Controller
@Mapping("/test/")

View File

@ -7,7 +7,7 @@ import org.noear.solon.annotation.Mapping;
/**
* 登录测试
* @author kong
*
* @author noear
*/
@Controller
@Mapping("/user/")