小编Sha*_*tti的帖子

如何只安装Font Awesome所需的字体?

我想使用Font Awesome中的几个图标.

我看到我们可以下载整个font-awesome目录并使用简单的代码,<i class="fa fa-camera-retro"></i>并用于fa-camera-retro显示图标.

我可以只下载我将使用的字体吗?

因为如果我只用上面的例子<i class="fa fa-camera-retro"></i>,fa-camera-retro我想通过只使用与此相关的图标文件,以减少目录的大小.

font-awesome

49
推荐指数
3
解决办法
3万
查看次数

编辑使用实体向导生成的现有实体时,在JHipster中检查Sum错误

我正在使用Postgresql作为我的数据库,并使用JHipster实体向导创建了所有实体.当我尝试进行任何更改,如添加/删除字段,与现有实体的关系,我收到校验和错误,Liquibase没有启动.另外,我没有手动对DB进行任何更改.

任何帮助表示赞赏.谢谢.这是我得到的错误:

2016-12-07 07:36:12.136 ERROR 8644 --- [cker-Executor-1] i.f.p.c.liquibase.AsyncSpringLiquibase   : Liquibase could not start correctly, your database is NOT ready: Validation Failed:
     1 change sets check sum
          classpath:config/liquibase/changelog/20161205191514_added_entity_Person.xml::20161205191514-1::jhipster is now: 7:b92d6a054bbdf952b81fa58376bd6a75


liquibase.exception.ValidationFailedException: Validation Failed:
     1 change sets check sum
          classpath:config/liquibase/changelog/20161205191514_added_entity_Person.xml::20161205191514-1::jhipster is now: 7:b92d6a054bbdf952b81fa58376bd6a75

        at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:215)
        at liquibase.Liquibase.update(Liquibase.java:208)
        at liquibase.Liquibase.update(Liquibase.java:192)
        at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:434)
        at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:391)
        at in.factly.promisetracker.config.liquibase.AsyncSpringLiquibase.initDb(AsyncSpringLiquibase.java:67)
        at in.factly.promisetracker.config.liquibase.AsyncSpringLiquibase.lambda$afterPropertiesSet$3(AsyncSpringLiquibase.java:50)
        at in.factly.promisetracker.config.liquibase.AsyncSpringLiquibase$$Lambda$28/847553836.run(Unknown Source)
        at in.factly.promisetracker.async.ExceptionHandlingAsyncTaskExecutor.lambda$createWrappedRunnable$1(ExceptionHandlingAsyncTaskExecutor.java:47)
        at in.factly.promisetracker.async.ExceptionHandlingAsyncTaskExecutor$$Lambda$29/342644967.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

postgresql liquibase jhipster

6
推荐指数
2
解决办法
3560
查看次数

Swagger OAS3.0 同一响应代码中的多个响应

我正在使用 Swagger Hub 生成 API,并希望获得 get 请求的多个响应:https://virtserver.swaggerhub.com/factly/test/1.0.0/categories

以下是我定义 API 的方式。当我执行 API 时,我只得到一个类别的响应。如何将所有三个类别定义为响应?任何帮助是极大的赞赏。

openapi: 3.0.0
info:
  description: This is the sample API for Core
  version: "1.0.0"
  title: Dega Core API
tags:
  - name: Core
    description: Operations related to Core
paths:
  /categories:
    get:
      tags:
        - Core
      summary: gets all the categories
      description: this is to get all the available categories
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CategoryItem'
              examples:
                category1:
                  $ref: '#/components/examples/category1'
                category2:
                  $ref: '#/components/examples/category2' 
                category3:
                  $ref: …
Run Code Online (Sandbox Code Playgroud)

swagger swagger-editor

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