# idmesh-servlet-sample
**Repository Path**: itsforkgithub/idmesh-servlet-sample
## Basic Information
- **Project Name**: idmesh-servlet-sample
- **Description**: https://github.com/sense-soft/idmesh-servlet-sample
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-04-09
- **Last Updated**: 2024-04-09
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# idmesh-servlet-sample
常规web应用的样例,使用servlet实现。
## 0.前提条件
在控制台配置应用的回调地址
```
http://localhost:8080/callback
```
获取应用domain、client_id和client_secret。[去获取](https://idaas.idmesh.site/console)
## 1.配置应用
在src/main/webapp/WEB-INF/web.xml中配置应用的参数。
```
com.idmesh.domain
${domain}
com.idmesh.clientId
${client_id}
com.idmesh.clientSecret
${clientSecret}
```
## 2.运行
```bash
./gradlew appRun
```
## 3.访问测试
```
打开浏览器输入:http://localhost:8080 登录应用
```