- Xiaomi Mi 11 Ultra - Circus Maximus
- Google Pixel 8 Pro - mestersége(s) az intelligencia
- Samsung Galaxy Watch8 - Classic - Ultra 2025
- iPhone topik
- Ezzel a mobillal készülhet a 2026-os MWC-re a HMD
- Lehetetlenül vékony és hihetetlenül kemény (fotó)
- Samsung Galaxy A54 - türelemjáték
- Apple Watch Sport - ez is csak egy okosóra
- Október 13. a Vivo X300-ak napja
- Foreo FAQ 202 – LED it be!
Új hozzászólás Aktív témák
-
Csaby25
őstag
Sziasztok!
package com.sec.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@EnableGlobalMethodSecurity(securedEnabled = true)
@Configuration
public class SecurityConf extends WebSecurityConfigurerAdapter{
@Autowired
public void configureAuth(AuthenticationManagerBuilder auth) throws Exception {
auth
.inMemoryAuthentication()
.withUser("sfjuser")
.password("{noop}pass")
.roles("USER")
.and()
.withUser("sfjadmin")
.password("{noop}pass")
.roles("ADMIN");
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("admin/**").hasRole("ADMIN")
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login.html")
.permitAll()
.and()
.logout()
.logoutSuccessUrl("/login?logout")
.permitAll();
}
}Nem találja a login.html-t, pedig a templates mappában van. Van ötletetek miért?
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- IPhone 15 Pro 512GB gyári független 2026.12.10 iCentre jótállás
- DELL Universal Dock UD22
- GIGABYTE RTX 5070 Ti 16GB GDDR7 EAGLE OC SFF - Új, 3 év garancia - Eladó!
- Bomba ár! Acer Nitro V - i5-6300HQ I 8GB I 128SSD + 1TB I GTX960 4G I 15,6" FHD I Cam I W10 I Gari!
- Bomba ár! Acer Aspire 7 - i7-7700HQ I 16GB I 256SSD I 15,6" FHD I GTX1050 I Cam I W11 I Gari!
- ÁRGARANCIA!Épített KomPhone Ryzen 5 7600X 32/64GB RAM RTX 5060 Ti 8GB GAMER PC termékbeszámítással
- HIBÁTLAN iPhone 13 Pro 256GB Silver -1 ÉV GARANCIA - Kártyafüggetlen, MS3382, 95% Akkumulátor
- Samsung Galaxy A55 5G / 8RAM 256GB / Gyárifüggetlen / 12 Hó Garanciával
- Samsung Galaxy Book2 Pro 360 i7-1260P 16GB 512GB OLED touchscreen, GARANCIA: 1ÉV
- iKing.Hu - Motorola G86 5G Dark Blue Használt, karcmentes állapotban 8 GB RAM / 256 GB tárhely
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: CAMERA-PRO Hungary Kft.
Város: Budapest