baza danych rozwiniecie
This commit is contained in:
1 parent
99c1aef51c
commit
ffc0dcff67
11 files changed
+291
-34
No files matched your search
@@ -1,6 +1,5 @@
|
||||
package application;
|
||||
|
||||
import application.repositories.RoleRepository;
|
||||
import application.utils.TokensGenerator;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
@@ -21,7 +20,7 @@ import org.springframework.scheduling.annotation.Scheduled;
|
||||
@EnableScheduling
|
||||
public class Config {
|
||||
|
||||
@Scheduled(fixedRate = 500)
|
||||
@Scheduled(fixedRate = 50000)
|
||||
public void generatePassword() {
|
||||
TokensGenerator.generatePassword();
|
||||
}
|
||||
@@ -29,8 +28,6 @@ public class Config {
|
||||
public static void main(String[] args) {
|
||||
|
||||
ConfigurableApplicationContext context = SpringApplication.run(Config.class, args);
|
||||
RoleRepository rr = context.getBean(RoleRepository.class);
|
||||
System.out.print(rr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user