Невозможно создать таблицу MySQL и загрузить в нее исходные данные с помощью Spring Boot после указания schema.sql и data.sql

Вам просто нужно поместить селектор :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

-1
задан user2325154 20 January 2019 в 05:50
поделиться

1 ответ

Добавление

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
0
ответ дан user2325154 20 January 2019 в 05:50
поделиться
Другие вопросы по тегам:

Похожие вопросы: