Java EE 企业应用系统设计 - HTTP 请求处理编程browser = request.getHeader("User-Agent"); ▶ int getIntHeader(String name) 1 int size = request.getIntHeader("Content-Length"); ▶ long getDateHeader(String name) 1 long datetime = request.getDateHe getDateHeader("If-Modified-Since"); ▶ Enumeration getHeaderNames() 1 for (Enumeration e = request.getHeaderNames(); e.hasMoreElements(); ) { 2 String headerName = (String) e.nextElement(); 3 System.out.println("Name␣=␣" 参数 1 productSearch.do?productName=Acer 以下代码可以取得以上的参数名为 productName 的数据: 1 String productName = request.getParameter("productName"); 大纲 HTTP 请求内容 Java EE 请求对象 取得请求中包含的提交参数数据 O String[] getParameterValues(String0 码力 | 27 页 | 565.27 KB | 1 年前3
Gitea v1.21.1 中文文档团队可以方 便地设置和管理自己的 Git 服务。 安全性: Gitea 注重安全性,提供了用户权限管理、访问控制列表等功能,可以确保代码和数据的安全性。 代码评审:代码评审同时支持 Pull Request workflow 和 AGit workflow。评审⼈可以在线浏览代 码,并提交评审意见或问题。 提交者可以接收到评审意见,并在线回 复或修改代码。代码评审可以帮助用户 和企业提⾼代码质量。 API ✓ ✓ ✓ ✓ ✓ ✓ ✓ 内置软件包/容器注 册中心 ✓ ✘ ✓ ✓ ✓ ✘ ✘ 同步提交到外部仓库 (push mirror) ✓ ✓ ✘ ✓ ✓ ✘ ✓ 同步外部仓库的提交 (pull mirror) ✓ ✘ ✘ ✓ ✓ ✘ ? 浅色和深色主题 ✓ ✘ ✓ ✓ ✓ ✘ ? 自定义主题支持 ✓ ✓ ✘ ✘ ✘ ✓ ✘ 支持 Markdown ✓ ✓ ✓ ✓ ✓ ✓ ✓ 支持 BitBucket RhodeCode CE Pull/Merge requests ✓ ✓ ✓ ✓ ✓ ✓ ✓ Squash merging ✓ ✘ ✓ ✓ ✓ ✓ ✓ Rebase merging ✓ ✓ ✓ ✘ ⁄ ✘ ✓ 评论 Pull/Merge request 中的某行 代码 ✓ ✘ ✓ ✓ ✓ ✓ ✓ 指定 Pull/Merge request 的审核人 ✓ ✘ ⁄ ✓ ✓ ✓ ✓0 码力 | 303 页 | 3.88 MB | 1 年前3
Weblate 4.2 用户文档this info accurate. 注解 All language selections only offer currently translated languages. 提示 Request or add other languages you want to translate by clicking the button to make them available too. 持续本地化集成 Pushing string changes to Weblate To push newly updated strings to Weblate, just let it pull from the upstream repository. This can be achieved in the user interface (in the Repository maintenance) */* ; do pushd $d git gc popd done 参见 DATA_DIR When accessing the site I get a “Bad Request (400)” error This is most likely caused by an improperly configured ALLOWED_HOSTS. It needs to contain0 码力 | 648 页 | 9.34 MB | 1 年前3
Weblate 4.2 用户文档this info accurate. 注解: All language selections only offer currently translated languages. 提示: Request or add other languages you want to translate by clicking the button to make them available too. 发布 4.2 Pushing string changes to Weblate To push newly updated strings to Weblate, just let it pull from the upstream repository. This can be achieved in the user interface (in the Repository maintenance) DATA_DIR 68 Chapter 1. User docs The Weblate Manual, 发布 4.2 When accessing the site I get a “Bad Request (400)”error This is most likely caused by an improperly configured ALLOWED_HOSTS. It needs to contain0 码力 | 410 页 | 4.56 MB | 1 年前3
Weblate 4.2.1 用户文档this info accurate. 注解 All language selections only offer currently translated languages. 提示 Request or add other languages you want to translate by clicking the button to make them available too. 持续本地化集成 Pushing string changes to Weblate To push newly updated strings to Weblate, just let it pull from the upstream repository. This can be achieved in the user interface (in the Repository maintenance) */* ; do pushd $d git gc popd done 参见 DATA_DIR When accessing the site I get a “Bad Request (400)” error This is most likely caused by an improperly configured ALLOWED_HOSTS. It needs to contain0 码力 | 650 页 | 9.34 MB | 1 年前3
Weblate 4.2.2 用户文档this info accurate. 注解 All language selections only offer currently translated languages. 提示 Request or add other languages you want to translate by clicking the button to make them available too. 持续本地化集成 Pushing string changes to Weblate To push newly updated strings to Weblate, just let it pull from the upstream repository. This can be achieved in the user interface (in the Repository maintenance) */* ; do pushd $d git gc popd done 参见 DATA_DIR When accessing the site I get a “Bad Request (400)” error This is most likely caused by an improperly configured ALLOWED_HOSTS. It needs to contain0 码力 | 650 页 | 9.34 MB | 1 年前3
Weblate 4.2.1 用户文档this info accurate. 注解: All language selections only offer currently translated languages. 提示: Request or add other languages you want to translate by clicking the button to make them available too. 发布 4.2.1 Pushing string changes to Weblate To push newly updated strings to Weblate, just let it pull from the upstream repository. This can be achieved in the user interface (in the Repository maintenance) DATA_DIR 68 Chapter 1. User docs The Weblate Manual, 发布 4.2.1 When accessing the site I get a “Bad Request (400)”error This is most likely caused by an improperly configured ALLOWED_HOSTS. It needs to contain0 码力 | 411 页 | 4.60 MB | 1 年前3
Weblate 4.2.2 用户文档this info accurate. 注解: All language selections only offer currently translated languages. 提示: Request or add other languages you want to translate by clicking the button to make them available too. 发布 4.2.2 Pushing string changes to Weblate To push newly updated strings to Weblate, just let it pull from the upstream repository. This can be achieved in the user interface (in the Repository maintenance) DATA_DIR 68 Chapter 1. User docs The Weblate Manual, 发布 4.2.2 When accessing the site I get a “Bad Request (400)”error This is most likely caused by an improperly configured ALLOWED_HOSTS. It needs to contain0 码力 | 411 页 | 4.60 MB | 1 年前3
Laravel 5.1 中文文档* @param \Illuminate\Http\Request $request * @param \Closure $next * @param string $role * @return mixed */ public function handle($request, Closure $next, $role) { if (! $request->user()->hasRole($role)) { // 跳转... } return $next($request); } } 中间件参数可以再定义路由时通过:分隔中间件名称和参数名称来指定,多个参数可以通过 逗号进行分隔: 本文档由 Laravel 使用 array_pluck 贡献代码 缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而不是 仅仅报告缺陷,“缺陷报告”也可以通过一个包含失败测试的 pull request 的方式提交。 然而,如果你以文件的方式提交缺陷报告,你的问题应该包含一个标题和对该问题的明确说 明,还要包含尽可能多的相关信息以及论证该问题的代码样板,缺陷报告的目的是为了让你0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档Laravel 5.2 可轻松实现表单字段的数组输入验证。例如,要验证给定数组输入字段中 的每一个 email 是唯一的,可以这么实现: $validator = Validator::make($request->all(), [ 'person.*.email' => 'email|unique:users' ]); 同样,你可以在语言文件中使用 * 来指定验证数组字段: 'custom' Illuminate\Support\HtmlString 即 可。 贡献代码 1、缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而 不是仅仅报告缺陷,“缺陷报告”也可以通过一个包含失败测试的 pull requests 的方式提 交。 然而,如果你以文件的方式提交缺陷报告,你的问题应该包含一个标题和对该问题的明确 说明,还要包含尽可能多的相关信息 \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if ($request->input('age') <= 200)0 码力 | 377 页 | 4.56 MB | 1 年前3
共 627 条
- 1
- 2
- 3
- 4
- 5
- 6
- 63













