Ich möchte gerne die Architektur von Spring Boot verstehen.
Ich habe in meinem Projekt folgende Packages erstellt:
Gibt es für so etwas eine Konvention?
Ich habe in meinem Projekt folgende Packages erstellt:
- controller
- service
- dao
Java:
package ch.concertopro.featureanalyser.service;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class AuthService extends WebSecurityConfigurerAdapter {
@Override
public void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
.antMatcher("/**").authorizeRequests()
.antMatchers("/").permitAll()
.anyRequest().authenticated()
.and()
.oauth2Login();
}
}
Gibt es für so etwas eine Konvention?