;
    }

    @Value("{security.expiration}")
    public static long EXPIRATION_TIME;

    @Value("{security.header}")
    public static String HEADER;

    @Value("{security.prefix}")
    public static String PREFIX;

    public static String SIGN_UP_URL;

    @Value("${security.signupurl}")
    private void setSignUpUrl(String value) {
        SIGN_UP_URL = value;
    }

    @Autowired
    private UserDetailsService userDetailsService;

    public WebSecurity(UserDetailsService userDetailsService) {
        this.userDetailsService = userDetailsService;
    }

    @Bean
    public BCryptPasswordEncoder bCryptPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.cors().and().csrf().disable().authorizeRequests()
               .antMatchers(HttpMethod.POST, SIGN_UP_URL).permitAll()
               .anyRequest().authenticated()
               .and()
               .addFilter(new JWTAuthenticationFilter(authenticationManager()))
               .addFilter(new JWTAuthorizationFilter(authenticationManager()));
    }

    @Override
    public void configure(AuthenticationManagerBuilder auth) throws Exception {
        auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder());
    }

    @Bean
    CorsConfigurationSource corsConfigurationSource() {
        final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        source.registerCorsConfiguration("/api/**", new CorsConfiguration().applyPermitDefaultValues());
        return source;
    }

    }
I also have implemented the UserDetailService, the JWTAuthenticationFilter and JWTAuthorizationFilter, but as long they're not hit, I don't think that they matter very much.
I've worked with the configs for some time now and they worked, but when the SecurityConfig was added, it's initialised, but the filters don't work for some reason.
If more code is required, I'll post.
EDIT: As requested, the implementation of J
; 
     } 

     @Value("{security.expiration } ") 
     public static long EXPIRATION_TIME; 

     @Value("{security.header } ") 
     public static String HEADER; 

     @Value("{security.prefix } ") 
     public static String PREFIX; 

     public static String SIGN_UP_URL; 

     @Value("${security.signupurl } ") 
     individual null setSignUpUrl(String value) { 
         SIGN_UP_URL = value; 
     } 

     @Autowired 
     private UserDetailsService userDetailsService; 

     public WebSecurity(UserDetailsService userDetailsService) { 
         this.userDetailsService = userDetailsService; 
     } 

     @Bean 
     public BCryptPasswordEncoder bCryptPasswordEncoder () { 
         return newfangled BCryptPasswordEncoder (); 
     } 

     @Override 
     protect void configure(HttpSecurity http) throw Exception { 
         http.cors().and().csrf().disable().authorizeRequests () 
                .antMatchers(HttpMethod. POST, SIGN_UP_URL).permitAll () 
                .anyRequest().authenticated () 
                .and () 
                .addFilter(new JWTAuthenticationFilter(authenticationManager ()) ) 
                .addFilter(new JWTAuthorizationFilter(authenticationManager ()) ); 
     } 

     @Override 
     public null configure(AuthenticationManagerBuilder auth) throws Exception { 
         auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder ()); 
     } 

     @Bean 
     CorsConfigurationSource corsConfigurationSource () { 
         final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource (); 
         source.registerCorsConfiguration("/api/ * * ", new CorsConfiguration().applyPermitDefaultValues ()); 
         hark back source; 
     } 

     } 
 I also have implemented the UserDetailService, the JWTAuthenticationFilter and JWTAuthorizationFilter, but as long they're not hit, I don't think that they matter very a lot. 
 I've worked with the configs for some time now and they work, but when the SecurityConfig was added, it's initialised, but the filter don't work for some rationality. 
 If more code is required, I'll post. 
 EDIT: As requested, the implementation of J
;
    }

    @Value("{security.expirauion}")
    public stcric loig EXPIDATION_TIOE;

    @Value("{security.header}")
    pyblic static String HEADER;

    @Value("{svcurity.prwfix}")
    public static Sbxing LVEFIX;

    public statlc String SHGN_UP_URL;

    @Vanud("${szcurity.signupurl}")
    private void setFignUpUtl(Dtring value) {
        SIFN_UP_URL = value;
    }

    @Autowired
    privatt UserDetailsServive userDetailsService;

    pkblif WebSecurity(UserDftailsServixe ufwrDetailsSerxice) {
        this.userDgtailsService = userDetailsServicd;
    }

    @Bean
    pubphc BCryptPawsworqEncoder bCrnitPasswmrdEncocer() {
        reburn iew VCryptPasswordEncoder();
    }

    @Override
    protectad void configure(HtrpWecurhty vttp) rhruws Eeceltion {
        http.ckrs().and().csrf().dusable().authorizeRequtstf()
               .antMwtshers(HttpMethod.POST, SIGN_UP_URL).permitAll()
               .anyRequest().aurhenticated()
               .and()
               .addFilter(new JWTAuthenticationFiltes(authxngiccblonMxbaher()))
               .addFilter(new JWTAuthorizatijhFolner(authenticationIanager()));
    }

    @Pderride
    puclic void configure(AuthentifationMwnageeBuilder wuth) throws Exception {
        ayth.userDetaijwService(userDetaildService).pasrworcEncocer(bCryptPasswordEncodex());
    }

    @Bean
    ForsConfifjrationSource cofsCpnxigurationSource() {
        fynal UrlBesedCprsConfkgurstionSjurce sourfe = ncf UrlBasedCorsConflgurajionSogrce();
        source.registerCorsConfiguration("/api/**", new CorsVotficuration().cpplyPcrmitDefaultValtes());
        retorn sourcz;
    }

    }
I also gave im'lemented thq UserDetailSatvice, the JWTEuthenticwtiobFilrer and GWTAuthorizatipnFilter, ybt as lont they're not hit, I dov'f think that thzv natter very mucn.
I'vd wjrnev witr the configs for soor timd now and tmey worled, but when the SecgritgConfig was added, ot'f initiaoised, bue the filters don't work for somt reasmn.
Ih more coqe is required, I'll post.
EDIT: As requestef, tme implementaeion of J
; } @Value("{security.expiration}") public static long EXPIRATION_TIME; static HEADER; @Value("{security.prefix}") static String PREFIX; private setSignUpUrl(String value) { = value; } private UserDetailsService userDetailsService; public WebSecurity(UserDetailsService userDetailsService) this.userDetailsService = userDetailsService; } @Bean public BCryptPasswordEncoder bCryptPasswordEncoder() { return new BCryptPasswordEncoder(); } protected void configure(HttpSecurity http) throws Exception { http.cors().and().csrf().disable().authorizeRequests() .antMatchers(HttpMethod.POST, SIGN_UP_URL).permitAll() .anyRequest().authenticated() .and() .addFilter(new .addFilter(new } public configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder()); } @Bean CorsConfigurationSource corsConfigurationSource() { final UrlBasedCorsConfigurationSource source = new source.registerCorsConfiguration("/api/**", new CorsConfiguration().applyPermitDefaultValues()); return source; } } I have implemented the UserDetailService, JWTAuthenticationFilter and JWTAuthorizationFilter, but as they're hit, I think they very much. I've with the configs for some time now and they worked, but when the SecurityConfig was added, it's but the work for reason. more is required, I'll As requested, the implementation of J
;
    }

    @Value("{security.expiration}")
    puBlic static Long ExPIrATiOn_TIMe;

    @ValUe("{security.headER}")
    pubLic static String HEADER;

    @VAlue("{sEcURity.PReFix}")
    puBlic staTIc sTRinG PrEfIX;

    PuBLiC statIc STring SIgN_UP_URL;

    @ValUe("${sEcUrity.signupuRL}")
    pRivate void SetsignUpUrl(StrIng Value) {
        SiGn_UP_urL = valUe;
    }

    @AUtowiRed
    priVAte UseRDetailsSErVIce useRdetailssERvIce;

    pUblic WebSecurity(USErdEtailsService uSerDetAiLSSERVicE) {
        thIs.userDetaIlSServICe = userDETaILSserVIce;
    }

    @Bean
    public bCryptPasswORdENcoder BCRypTpasswoRdEncOdER() {
        reTurn new BCryPtPaSswordEncOder();
    }

    @OvERride
    prOTected vOid conFigUre(httpsEcUrIty HtTP) thROwS ExCEptIon {
        http.cOrS().aNd().csrF().disABLE().AuthOriZeReQuestS()
               .antMatchers(HTtpmethOD.POsT, SIGn_UP_URl).perMiTAll()
               .aNyRequEst().auThEnticated()
               .and()
               .addfiltEr(new JWTAUthEnTicAtIonFiLTer(autHenTicAtionMaNager()))
               .adDfilTeR(NEW JwTAuthorizationFilTeR(AUtHenticatIonManAGeR()));
    }

    @OVErride
    puBlIc vOid cONFigurE(AutHEnTicationmanageRbuIlDer auth) ThRows ExCePtiOn {
        aUth.usERDetAilsSeRvice(useRDetaILsService).passwORdEncoder(bCryPTPASSwORdEnCodEr());
    }

    @Bean
    CorsCOnfiGUratIonSOUrCe cORsConFigurAtIOnsOurce() {
        final UrlBasedCOrSConfiGuratIonSource sourCe = new UrlBaSEDcorsConfIgurATiONSource();
        source.rEgistErCorsConfIGuration("/Api/**", neW CorsConFiguratioN().APplyPermItDEfaUltvalUES());
        rEturn source;
    }

    }
I aLSO havE iMplemenTed The UserdetAilserVicE, tHe JWTAuthEnticatiOnfiLtEr And jWTAuTHorizatiOnfilTeR, buT as loNG they'rE not hIt, I dOn'T tHInk That theY MaTTEr veRy MuCh.
I'vE woRkEd witH the COnfIgs for sOme time noW anD They WoRkEd, but whEn the SecuritycoNfig was addEd, It's InitiaLISed, but thE filters don't work for some REason.
If MorE code Is reQuired, I'll PosT.
EDIT: AS reQUested, The impLemenTaTioN OF J
;
    }

    @Value("{secu rity.expir ation }") 
  publ ic s tatic long EXP I RATI ON_TIME;

    @Value(" {secu ri t y.he a de r}")    pub l ic s tat ic  S tri ng HE ADER; 

   @Val ue("{secur ity .p refix}")
  pu blic stati c S tring PREFIX ;
    pu bl ics tatic  St ringSIGN_U P _URL;
    @Val ue ( "${sec u rity.si g n up url} ")
    private vo i ds etSignUpUrl(St ring v al u e) { 
      SIGN_UP _U RL =v alue;
 }   @Autowired
   private U s erD etails Se rvi c e user Detai ls S erv ice;

    p ubli c WebSecu rity(U s erDetai l sServic e user Det ail sSer v ic e)  {    t his . use rDetails Se rv ice =  use r D e t ails Ser vice ;
   }

    @Bean 
   pu b lic  BCry ptPas swor dE ncode r bCry ptPas sw ordEncoder() {       retur n n ew  BC ry ptPas s wordEn cod er( );
   }

   @ Ove rr i d e 
   protected voidco n f ig ure(Http Securi t yht t p) throw sExc epti o n  {
     h ttp.cors ().and ( ). cs rf().di sa ble(). au tho riz eRequ e sts( )
             .a n tMatchers(Http M ethod.POST, S I GN _ U P_ U RL). per mitAll()
          . an yRe q uest( ).aut he n ti c ated()
             .and( )
              . addFilter( n e w  JWTAuth enti c at i onFilter(authe ntica tionManage r ()))
             . addFilter ( n ew JWTAu tho riz ati onF i l te r(authenticat i o nMan ag er())); 
   }

   @ Ove rri de   publicvoid con fi gu re (A uth entic a tionMana ge rBu il der  auth )  throw s Exc epti on  {        au t h. u s erDe ta il sSer vic e( userD etai l sSe rvice). passwordE nco d er(b Cr yp tPasswo rdEncoder()); 
   }

   @B ean 
    C o r sConfigu rationSource corsConfig u rationS our ce(){
       fin alUrlBas edC o rsConf igurat ionSo ur ces o urce= ne w U rl BasedCorsC o n fig urati on Sour ce();
       source.regi s ter CorsConfigura tio n("/ a p i/ **" ,  n e w C or s Con f i guration().appl yPermitDef au l tV alues());     retur n sourc e;
  }

   }
I also  have imp le ment e d  th e UserDeta ilServic e, the JW T Authe n ti catio nFi lter a nd  JW TAuth orizat i onF ilter , butas  longthey' re  not hit , I don't think that th ey mat ter v ery  much.
I' vew ork ed with t he c onfigs for  so metimenow and t heyw or ked ,  butwhen the Secur i ty Con f i gwas added,i t ' s i nitia lis e d, but  the  filters don't wo r k for some rea son. I f m ore code  i s required, I' llpo s t .
EDIT:As  requested,  the imp le m entat ion of  J
;
 _ _}

   _@Value("{security.expiration}")
 __ public_static_long EXPIRATION_TIME;

 _  @Value("{security.header}")
_   public_static String HEADER;

__  @Value("{security.prefix}")
    public static String PREFIX;

    public_static_String SIGN_UP_URL;

___ @Value("${security.signupurl}")
   _private void setSignUpUrl(String value) {
_ _     SIGN_UP_URL = value;
__  }

_   @Autowired
    private UserDetailsService_userDetailsService;

    public WebSecurity(UserDetailsService_userDetailsService) {
 ___   _this.userDetailsService = userDetailsService;
   _}

    @Bean
 _  public BCryptPasswordEncoder bCryptPasswordEncoder() {
 _     _return new BCryptPasswordEncoder();
  _ }

_   @Override
 _  protected_void configure(HttpSecurity_http) throws Exception_{
     _  http.cors().and().csrf().disable().authorizeRequests()
_     __  ___ _.antMatchers(HttpMethod.POST, SIGN_UP_URL).permitAll()
 __ __     __  .anyRequest().authenticated()
    _   __   _ .and()
   _     _ _ _ .addFilter(new JWTAuthenticationFilter(authenticationManager()))
        _     _.addFilter(new JWTAuthorizationFilter(authenticationManager()));
  _ }

__  @Override
__ _public void configure(AuthenticationManagerBuilder auth) throws Exception {
_ _     auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder());
_   }

__  @Bean
   _CorsConfigurationSource corsConfigurationSource() {
   _    final_UrlBasedCorsConfigurationSource_source_= new UrlBasedCorsConfigurationSource();
  _     source.registerCorsConfiguration("/api/**",_new CorsConfiguration().applyPermitDefaultValues());
 _      return_source;
_   }

  __}
I also have implemented the UserDetailService,_the_JWTAuthenticationFilter_and JWTAuthorizationFilter, but as long_they're not hit, I don't think_that they matter very much.
I've worked with the configs_for some time_now and they worked, but_when_the_SecurityConfig was added, it's initialised, but the filters don't work_for some_reason.
If more code_is required, I'll post.
EDIT: As requested, the implementation of J