Hirdetés
- Samsung Galaxy S23 Ultra - non plus ultra
- Google Pixel 9 Pro XL - hét szűk esztendő
- Kecses és filléres Apple Watch klón a Redmitől
- iPhone topik
- Xiaomi 15T Pro - a téma nincs lezárva
- Samsung Galaxy Watch4 és Watch4 Classic - próbawearzió
- Xiaomi 15T - reakció nélkül nincs egyensúly
- Fotók, videók mobillal
- Windows 10 Mobile (Windows Phone) szakmai topik
- Apple Watch Sport - ez is csak egy okosóra
Ú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?:))
- Okos Otthon / Smart Home
- Arc Raiders
- A fociról könnyedén, egy baráti társaságban
- LEGO klub
- CASIO órák kedvelők topicja!
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Ne várj sokat a vásárlással: drágulás a láthatáron
- D1Rect: Nagy "hülyétkapokazapróktól" topik
- ThinkPad (NEM IdeaPad)
- Samsung Galaxy S23 Ultra - non plus ultra
- További aktív témák...
- T14s Gen4 14" FHD+ IPS Ryzen 7 PRO 7840U 32GB 512GB NVMe magyar vbill ujjlolv IR kam gar
- Samsung Galaxy S23 Ultra 256Gb Zöld, jó akkumulátor
- MSI Cyborg 15 A13VF 15.6" FHD IPS i7-13620H RTX 4060 16GB 512GB NVMe gar
- X1 Carbon 11th 14" FHD+ IPS i5-1345U 32GB 512GB NVMe magyar vbill ujjolv IR kam gar
- új Sony PlayStation 5 Slim 1 TB + DualSense kontroller
- Azonnali készpénzes nVidia RTX 5000 sorozat videokártya felvásárlás személyesen / csomagküldéssel
- Samsung DLP projektor, The Freestyle SP-LSP3B
- Bomba ár! Lenovo ThinkPad T440s - i5-4GEN I 8GB I 128GB SSD I 14" HD+ I Cam I W10 I Garancia!
- GYÖNYÖRŰ iPhone 12 mini 128GB Blue-1 ÉV GARANCIA - Kártyafüggetlen, MS3415 94% Akkumulátor
- BESZÁMÍTÁS! Asus A620M R5 7600X 32GB DDR5 1TB SSD RTX 3080 10GB Zalman M4 A-Data 750W
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


