zoukankan      html  css  js  c++  java
  • activiti-屏蔽Security认证

    在启动项配置,屏蔽Security认证

    import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
    import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
    
    @Slf4j
    @EnableSwagger2
    @SpringBootApplication(exclude = {SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
    public class ZAManagementApplication {
    
        public static void main(String[] args) throws UnknownHostException {
            //System.setProperty("spring.devtools.restart.enabled", "true");
    
            ConfigurableApplicationContext application = SpringApplication.run(ZAManagementApplication.class, args);
            Environment env = application.getEnvironment();
            String ip = InetAddress.getLocalHost().getHostAddress();
            String port = env.getProperty("server.port");
            String path = env.getProperty("server.servlet.context-path");
            log.info("
    ----------------------------------------------------------
    	" +
                    "Application za-platform-management is running! Access URLs:
    	" +
                    "Local: 		http://localhost:" + port + path + "/
    	" +
                    "External: 	http://" + ip + ":" + port + path + "/
    	" +
                    "swagger-ui: 	http://" + ip + ":" + port + path + "/swagger-ui.html
    	" +
                    "Doc: 		http://" + ip + ":" + port + path + "/doc.html
    " +
                    "----------------------------------------------------------");
        }
    
    }
  • 相关阅读:
    sso单点登录
    mysql java写入时间少14小时
    mysql 时间
    mysql中timestamp的自动生成与更新
    centos7下用命令安装node&pm2
    腾讯蓝鲸资源分配
    Centos7 安装谷歌浏览器
    Ubuntu安装Apache 2.4.7常见问题解答
    Ubuntu常见服务启停
    LVM 'Can’t open /dev/sdb1 exclusively. Mounted filesystem?' Problem
  • 原文地址:https://www.cnblogs.com/brucebai/p/13471143.html
Copyright © 2011-2022 走看看