我正在做Spring Security,并且试图将我的API与数据库连接以获得用户身份验证。 我不知道错误。
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
Property: driverclassname
Value: com.mysql.cj.jdbc.Driver
Origin: "driverClassName" from property source "source"
Reason: com.mysql.cj.jdbc.Driver
Action:
Update your application's configuration
Process finished with exit code 1
答案 0 :(得分:0)
似乎是HikariCP配置问题。如果您使用yml文件进行春季启动,则application.yml文件应具有以下内容。
<div class=" row startpage-text mx-auto text-center d-flex just justify-content-center col-xs-12 ">
<h1 class="name m-5 p-2 align-items-center col-sm text-center text-light col-xs-12">Philip Lagergren Ydehed</h1>
<h2 class="m-4 align-items-center col-sm text-center text-light info col-xs-12">Studerande inom webbutveckling fullstack på Nackademin</h2>
</div>
请按照数据库中的角度<>更改我刚才提到的占位符。