View Javadoc
1   package org.oxerr.spring.security.otp.samples.helloworld;
2   
3   import org.oxerr.spring.security.otp.core.OTPAuthenticationService;
4   import org.oxerr.spring.security.otp.samples.helloworld.service.impl.OTPAuthenticationServiceImpl;
5   import org.springframework.boot.SpringApplication;
6   import org.springframework.boot.autoconfigure.SpringBootApplication;
7   import org.springframework.context.annotation.Bean;
8   import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
9   
10  @SpringBootApplication
11  @EnableGlobalMethodSecurity(jsr250Enabled = true)
12  public class Application {
13  
14  	@Bean
15  	public OTPAuthenticationService otpAuthenticationService() {
16  		return new OTPAuthenticationServiceImpl();
17  	}
18  
19  	public static void main(String[] args) {
20  		SpringApplication.run(Application.class, args);
21  	}
22  
23  }