221228 TIL Update Spring Security

William Parker·2022년 12월 28일

Trouble Occurred
I initialized the database before implementing Google login. -> Unable to drop table user because of reference id.

Solution
Execute SET foreign_key_checks = 0; first, then drop.


Trouble Occurred
After dropping the table, user is not exist error occurs.

Solution
used the mysql insert into


Trouble Occurred
after sovled above errors css and js are not running.

Solution

    @Bean
    public WebSecurityCustomizer configure() {
        return (web) -> web.ignoring().mvcMatchers(
                "/resources/**", "/static/**", "/landing-assets/**", "/images/**"
                , "/custom-scripts/**", "/custom-assets/**","/assets/**","/app-assets/**"
                ,"/templates/**", "/general/**","/api/v1/pri/**"
        );
    }

A problem caused by not properly setting the path. This opportunity made me feel the importance of route setting.

profile
Developer who does not give up and keeps on going.

0개의 댓글