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
    " +
                    "----------------------------------------------------------");
        }
    
    }
  • 相关阅读:
    Node-SASS安装
    小程序码传前端
    Java多线程回调
    eclipse 添加subversion管理svn
    本地git管理多个远端仓库
    oracle 数据库备份expdp、impdp
    清理maven本地库中的lastUpdated文件
    解决tomcat同时部署两个SpringBoot应用提示InstanceAlreadyExistsException
    tomcat 配置本地路径映射
    AndyLizh老师SpringBoot学习
  • 原文地址:https://www.cnblogs.com/brucebai/p/13471143.html
Copyright © 2011-2022 走看看