Код: Выделить всё
app:
auth:
domain: myaccount.auth0.com
clientId: ${AUTH0_CLIENT_ID}
scope: openid profile email add:documents site:admin
Код: Выделить всё
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "ArtificialUnIntelligenceApplication",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"mainClass": "doo.dah.aui.artificial_unintelligence.ArtificialUnIntelligenceApplication",
"projectName": "app",
"env": {
"SPRING_PROFILES_ACTIVE": "${env:SPRING_PROFILES_ACTIVE}",
"OPENAI_API_KEY": "${env:OPENAI_API_KEY}",
"PINECONE_API_KEY": "${env:PINECONE_API_KEY}",
"SPRING_AI_OPENAI_API_KEY": "${env:SPRING_AI_OPENAI_API_KEY}",
"AUTH0_CLIENT_ID": "${env:AUTH0_CLIENT_ID}"
}
},
]
}
< /code>
Когда я запускаю, действует так, как будто не хватает свойств в файле ... < /p>
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'app.auth' to doo.dah.aui.artificial_unintelligence.config.auth.AuthProperties:
Reason: java.lang.IllegalStateException: Unable to create instance for doo.dah.aui.artificial_unintelligence.config.auth.AuthProperties
This may be due to missing parameter name information
Подробнее здесь: https://stackoverflow.com/questions/796 ... using-java