Avatar

Organizations

@twitter @linkedin
3 results for spring
  • My setup for a java 11 spring-boot API service deployed on heroku. Gatsby I’d to update this repo first since the deploy action failed with this error Failed to resolve action download info. Error: Unable to resolve action `JamesIves/github-pages-deploy-action@master`, unable to find version `master` Retrying in 20.243 seconds Error: Unable to resolve action `JamesIves/github-pages-deploy-action@master`, unable to find version `master` See https://github.com/emeraldjava/emeraldjava.github.io/runs/2374008241?check_suite_focus=true https://github.com/JamesIves/github-pages-deploy-action sdkman First install sdkman for managing java installs
    spring heroku Created Sun, 18 Apr 2021 00:00:00 +0000
  • Spring Boot - Web Security public class HttpComponentsClientHttpRequestFactoryBasicAuth extends HttpComponentsClientHttpRequestFactory { private HttpHost host; public HttpComponentsClientHttpRequestFactoryBasicAuth(HttpHost host) { super(); this.host = host; } protected HttpContext createHttpContext(HttpMethod httpMethod, URI uri) { return createHttpContext(); } private HttpContext createHttpContext() { // Create AuthCache instance AuthCache authCache = new BasicAuthCache(); // Generate BASIC scheme object and add it to the local auth cache BasicScheme basicAuth = new BasicScheme(); authCache.put(host, basicAuth); // Add AuthCache to the execution context BasicHttpContext localcontext = new BasicHttpContext(); localcontext.
    spring java Created Mon, 01 Jan 0001 00:00:00 +0000
  • Spring Boot - Web Security 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.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { //@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("admin").password("admin").roles("ADMIN"); auth.inMemoryAuthentication().withUser("user").password("user").roles("USER"); } //.csrf() is optional, enabled by default, if using WebSecurityConfigurerAdapter constructor @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/daymember", "/export", "/header", "/list", "/member", "/menu", "/prereg").permitAll().anyRequest().authenticated() .and() .formLogin().loginPage("/login").permitAll().defaultSuccessUrl("/member") .and() .logout().permitAll(); } /** * http://stackoverflow.
    spring java Created Mon, 01 Jan 0001 00:00:00 +0000