Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noear/solon_auth_demo

solon_auth_demo
https://github.com/noear/solon_auth_demo

Last synced: 6 days ago
JSON representation

solon_auth_demo

Awesome Lists containing this project

README

        





Solon Java Framework



Java 新的生态,更小、更快、更简单!



https://solon.noear.org



Maven


Apache 2


jdk-8


jdk-11


jdk-17


jdk-21




gitee star


github star







启动快 5 ~ 10 倍;qps 高 2~ 3 倍;运行时内存节省 1/3 ~ 1/2;打包可以缩到 1/2 ~ 1/10


## solon_auth_demo

#### 授权标签

demo_beetl 示例:

```html
<#authPermissions name="user:del">
我有user:del权限
#authPermissions>

<#authRoles name="admin">
我有admin角色
#authRoles>
```

demo_enjoy 示例:

```html
#authPermissions("user:del")
我有user:del权限
#end

#authRoles("admin")
我有admin角色
#end
```

demo_thymeleaf 示例:

```html

我有user:del权限

我有admin角色

```

demo_freemarker 示例:

```html
<@authPermissions name="user:del">
我有user:del权限
@authPermissions>

<@authRoles name="admin">
我有admin角色
@authRoles>
```

demo_velocity 示例:

```html
#authPermissions("user:del")
我有user:del权限
#end

#authRoles("admin")
我有admin角色
#end
```

demo_jsp 示例:

```html

我有user:del权限

我有admin角色

```