小编Han*_*ans的帖子

使用具有多路径代理匹配的 angular-cli

如何在我的 proxy.conf.json 中定义多个代理路径?github 上的angular-cli 代理文档看起来只能有一个路径 (/api):

{
  "/api": {
    "target": "http://localhost:3000",
    "secure": false
  }
}
Run Code Online (Sandbox Code Playgroud)

但是当我查看webpack 代理http-proxy-middleware文档时,我发现应该可以定义多个路径(/api-v1 和 /api-v2):

// Multiple entry
proxy: [
  {
    context: ['/api-v1/**', '/api-v2/**'],
    target: 'https://other-server.example.com',
    secure: false
  }
]
Run Code Online (Sandbox Code Playgroud)

但我不明白如何将其放入 proxy.conf.json。

webpack-dev-server angular-cli http-proxy-middleware angular

13
推荐指数
1
解决办法
1万
查看次数

添加appcenter应用程序时行大小太大(> 8126)异常

我正在尝试在Windows 8.1上的Websphere Liberty服务器上部署iOS的worklight应用程序中心.但是当我尝试通过appcenter控制台添加IBMAppCenter.ipa时,我在服务器日志中遇到异常.

Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline. {prepstmnt 1563792952 INSERT INTO APPLICATION_STORAGE (CONTENT, AP_FK) VALUES (?, ?) [params=(InputStream) java.io.ByteArrayInputStream@5987916, (null) null]} [code=1118, state=42000]
Run Code Online (Sandbox Code Playgroud)

以下是重现我的问题的方案:

  1. 通过mysql社区安装程序安装mysql 5.6.2
  2. 安装Websphere Liberty应用程序服务器v8.5.5
  3. 安装Worklight Server v6.2
  4. 通过XCode生成IBMAppCenter.ipa
  5. 登录appcenterconsole并尝试添加应用程序

我尝试按照hjpotter92对"Mysql行大小太大"的更改限制的建议启用表APPLICATION_STORAGE的压缩,但没有任何运气.任何帮助将非常感激.

编辑

以下是APPLICATION_STORAGE表的定义,该表导致问题:

CREATE TABLE APPLICATION_STORAGE (ID INTEGER NOT NULL AUTO_INCREMENT, CONTENT LONGBLOB, AP_FK INTEGER, PRIMARY KEY (ID)) ENGINE …
Run Code Online (Sandbox Code Playgroud)

mysql worklight-appcenter ibm-mobilefirst

1
推荐指数
1
解决办法
4620
查看次数