Вам просто нужно поместить селектор :hover
в класс .btn
.
Также полезно также взглянуть на этот псевдоселектор :focus-within
https://css-tricks.com/almanac/selectors/f/focus-within/
.btn {
border: none;
background-color: inherit;
padding: 14px 28px;
font-size: 15px;
cursor: pointer;
display: inline-block;
}
.btn i {
padding: 8px;
font-size: 15px;
transition: all 0.4s ease;
color: #000;
}
.btn:hover i {
transform: rotateZ(180deg);
}
About
Добавление
spring.datasource.initialization-mode=always
в application.propertie
s решило проблему.
Полные файлы application.properties перечислены ниже.
# ==============================================================
# = Data Source
# ==============================================================
spring.datasource.url=jdbc:mysql://localhost:3306/agrisell-db
spring.datasource.username=root
spring.datasource.password=123456
# ==============================================================
# = Hibernate ddl auto (create, create-drop, update)
# ==============================================================
spring.jpa.hibernate.ddl-auto=none
# ==============================================================
# = The SQL dialect makes Hibernate generate better SQL for the chosen database
# ==============================================================
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
# ==============================================================
# = Initialize the database using data.sql script
# ==============================================================
spring.datasource.initialization-mode=always
# ==============================================================
# = Show or not log for each sql query
# ==============================================================
spring.jpa.show-sql=true
# ==============================================================
# = Keep the connection alive if idle for a long time (needed in production)
# ==============================================================
spring.datasource.testWhileIdle=true
spring.datasource.validationQuery=SELECT 1