Отключил добавление дефолтных пользователей и включил сохраенение бд
This commit is contained in:
parent
392d88accf
commit
6df4cdebfc
@ -27,12 +27,12 @@ public class NekontakteApplication implements CommandLineRunner {
|
||||
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
_logger.info("Create default user values");
|
||||
final var admin = new UserEntity(
|
||||
"admin",
|
||||
"admin",
|
||||
UserRole.ADMIN);
|
||||
userService.create(admin);
|
||||
// _logger.info("Create default user values");
|
||||
// final var admin = new UserEntity(
|
||||
// "admin",
|
||||
// "admin",
|
||||
// UserRole.ADMIN);
|
||||
// userService.create(admin);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ spring.datasource.url=jdbc:h2:file:./test
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=password
|
||||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
spring.jpa.hibernate.ddl-auto=create
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.open-in-view=false
|
||||
# spring.jpa.show-sql=true
|
||||
# spring.jpa.properties.hibernate.format_sql=true
|
||||
|
Loading…
Reference in New Issue
Block a user