Getting error while trying to add app descriptor outside resource file

I just wanted to use two Jira applications in the same code so I created a controller that gives response as raw json descriptor based on the host

{
  "key": "${addon.prosolvr-key}",
  "baseUrl": "${addon.base-url}",
  "name": "prosolvr",
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "modules": {
    "generalPages": [
      {
        "key": "prosolvr-page",
        "location": "system.top.navigation.bar",
        "name": {
          "value": "prosolvr app"
        },
        "url": "/collaboratorlogin",
        "conditions": [
          {
            "and": [
              {
                "condition": "user_is_admin",
                "invert": true
              }
            ]
          },
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "key": "prosolvr-admin-page",
        "location": "system.top.navigation.bar",
        "name": {
          "value": "Manage prosolvr app"
        },
        "url": "/adminpage",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      }
    ],
    "postInstallPage": {
      "url": "/home",
      "name": {
        "value": "Home Page",
        "i18n": "homepage.name"
      },
      "key": "prosolvr-home-page"
    },
    "webhooks": [
      {
        "event": "jira:issue_created",
        "url": "/wh/issue_created"
      },
      {
        "event": "jira:issue_updated",
        "url": "/wh/issue_updated"
      }
    ]
  },
  "scopes": [
    "READ",
    "ADMIN",
    "WRITE",
    "ACT_AS_USER"
  ]
}

I created two files and I used two different for both
image

But It’s getting error while running in spring boot as

atlassian-connect-spring-boot requires a bean of type ‘com.atlassian.connect.spring.AtlassianHostRepository’ that could not be found. This repository is used for storing installation data.
How can I solve this issue?