小编Art*_*tov的帖子

pg_restore 适用于 zip 文件?

只是试图从资源恢复教程数据库:http : //www.postgresqltutorial.com/load-postgresql-sample-database/

所以,在这段代码之后

pg_restore -U postgres -d dvdrental /Users/fedotarte/Downloads/dvdrental.zip
Run Code Online (Sandbox Code Playgroud)

我收到当前消息:

pg_restore: [archiver] 输入文件似乎不是有效的存档

我应该怎么做才能成功恢复数据库?

先感谢您!

database postgresql pg-restore

4
推荐指数
1
解决办法
8278
查看次数

无法导入 springframework.security.extensions 并找到 saml() 方法

org.springframework.security.extensions.saml2.config.SAMLConfigurer 不存在

至少我不能在我的安全配置类中导入org.springframework.security.extensions.saml2.config.SAMLConfigurer方法saml()尚未定义。

SecurityConfiguration.java的源代码:

    package com.hem.configuration;

    import com.hem.properties.ServerProxy;
    import com.hem.properties.ServerSsl;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.beans.factory.annotation.Value;
    import org.springframework.context.annotation.Configuration;
    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.EnableWebSecurity;
    import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.extensions.saml2.config.SAMLConfigurer;

    @EnableWebSecurity
    @Configuration
    @EnableGlobalMethodSecurity(securedEnabled = true)
    public class SecurityConfiguration extends WebSecurityConfigurerAdapter {

        private static final String HTTPS = "https";

        @Value("${security.saml2.metadata-url}")
        private String metadataUrl;

        @Value("${saml.entity.id}")
        private String entityId;

        @Autowired
        private ServerProxy serverProxy;

        @Autowired
        private ServerSsl serverSsl;

        @Autowired
        private SAMLUserDetailsServiceImpl samlUserDetailsServiceImpl;

        @Override
        protected void configure(final HttpSecurity http) throws Exception {
            http
                .authorizeRequests() …
Run Code Online (Sandbox Code Playgroud)

java spring spring-security saml spring-saml

3
推荐指数
1
解决办法
1456
查看次数