首页 文章 精选 留言 我的

精选列表

搜索[依赖管理],共10000篇文章
优秀的个人博客,低调大师

IDEA 打war包部署时子模块jar包没依赖上

使用IDEA在tomcat中部署maven多模块时出现的一个莫名的bug 首先在server中打印下: 可以看见 context [] startup failed due to previous error, see server log for details. [2018-10-19 10:55:28,273] Artifact springmvc-test:war exploded: Artifact is being deployed, please wait... Oct 19, 2018 10:55:29 AM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Oct 19, 2018 10:55:30 AM org.apache.catalina.core.StandardContext startInternal SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file Oct 19, 2018 10:55:30 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [] startup failed due to previous errors [2018-10-19 10:55:30,410] Artifact springmvc-test:war exploded: Error during artifact deployment. See server log for details. Oct 19, 2018 10:55:38 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /opt/apache-tomcat-7.0.90/webapps/manager Oct 19, 2018 10:55:38 AM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Oct 19, 2018 10:55:38 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory /opt/apache-tomcat-7.0.90/webapps/manager has finished in 222 ms 于是我们打开tomcat日志位置并查看: 显示framework-base中的ConfigItem NotFound. zwj@ubuntu:~/.IntelliJIdea2018.1/system/tomcat/Unnamed_learn/logs$ ls catalina.2018-10-18.log localhost_access_log.2018-10-17.txt catalina.2018-10-19.log localhost_access_log.2018-10-18.txt host-manager.2018-10-18.log localhost_access_log.2018-10-19.txt host-manager.2018-10-19.log manager.2018-10-18.log localhost.2018-10-18.log manager.2018-10-19.log localhost.2018-10-19.log cat localhost。2018-10-19.log org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.zwj.framework.base.config.ConfigItem] for bean with name 'com.zwj.framework.base.config.ConfigItem#0' defined in class path resource [spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.zwj.framework.base.config.ConfigItem 果然在war包下的lib中并没有framework-base,springwork-mybatis等子模块的jar包: 显然使用idea点击运行tomcat时,在编译打包过程中我们的子模块给遗漏了?带着问题继续查看IDEA的日志。。。 zwj@ubuntu:~$ cd .IntelliJIdea2018.1/system/log/ zwj@ubuntu:~/.IntelliJIdea2018.1/system/log$ ls build-log idea.log.2 idea.log.5 idea.log idea.log.3 threadDumps-freeze-20181016-152806-IU-181.5540.7-20sec idea.log.1 idea.log.4 zwj@ubuntu:~/.IntelliJIdea2018.1/system/log$ tail -f idea.log com.intellij.execution.ExecutionException: Cannot load /home/zwj/learn/learn/springmvc-test/target/artifacts/springmvc_test_war_exploded /META-INF/context.xml: /home/zwj/learn/learn/springmvc-test/target/artifacts/springmvc_test_war_exploded/META-INF/context.xml (No such file or directory) at org.jetbrains.idea.tomcat.TomcatUtil.loadXMLFile(TomcatUtil.java:208) at org.jetbrains.idea.tomcat.TomcatUtil.findContextInContextXml(TomcatUtil.java:107) at org.jetbrains.idea.tomcat.TomcatUtil.findContextElement(TomcatUtil.java:381) at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl.addApplicationContext(TomcatAdminLocalServerImpl.java:191) 百度了半天发现,这个context文件没有加载并不是错误的根本,而是没有导入子模块的jar包时产生的子错误。 庆幸的是最终还是找到了错误,我们看到下图中artifacts的lib中没有子模块的jar包,需要先点击lib,然后在available elements中点开相应模块,然后再 pack into进去。 最后点击运行就行了。。。。。。。 坑。。。。。

优秀的个人博客,低调大师

人工智能依赖网络安全 传统安全厂商有优势

一、人工智能对网络安全需求度较高 兵马未动,粮草先行。人工智能是基于网络和大数据的,保护网络和数据安全是发展人工智能的前提,网络信息安全是人工智能的保镖。从产业周期角度看,科技越来越深入经济和社会,从简单的信息传递、游戏娱乐到为生活、工作做出决策。人工智能的角色从配角到主角,再到主演,对主演的保护要远胜配角。 Master横扫人类围棋高手,现在我们需要考虑的是人工智能的边界在哪里。所以,人工智能需要网络安全来限制其边界,实行保护式发展。最典型的案例就是无人机禁飞区,这种禁飞除了行政手段外,最有效的还是技术手段,用网络安全限制无人机。 二、网络安全需要人工智能提升防护能力 “人工智能+网络安全”出现频次急剧上升。2016年,“网络安全”、“人工智能”和“机器学习”这三个词汇的增长率基本相同。“网络安全”与“人工智能”共同出现在文章中的频率增加了。传统网络安全方法的核心是对网络划分边界,随着防护边界泛网络化后网络安全要利用人工智能技术应对网络泛化的数据安全。例如用户和实体行为分析(UEBA),特别是防止内部人员泄密。 三、人工智能网络安全成为创投并购重点 2017年才过去两个月,就有三家 AI网络安全创业企业被科技巨头重金收购。在打击网络犯罪领域,人工智能技术正变得越来越重要。2017年前2个月已经有3家关注AI的网络安全创业企业已被收购。这三家网络安全创业企业都针对机器学习技术,即一组用来训练机器从数据中学习并预测趋势和结果的算法。包括利用机器学习算法来进行自然语言处理、预测分析、图像识别等种种功能。另外,埃森哲于2月8日收购了AI网络安全公司Endgame的联邦服务部门。LRR Partners于1月9日收购了 BluVector。BluVector是从国防承包商诺斯罗普格鲁曼公司分离出的子公司,其使用机器学习算法来实时检测企业网络中的安全威胁。 四、传统安全厂商有优势 随着工业4.0实施,工控不再是相对独立的网络,而是完全融入互联网的一部分。要从传统互联网的角度维护工控安全,而非工控系统。所以我们认为,未来的工控安全领域,传统IT厂商启明星辰(002439)、绿盟科技(300369)等具有显著优势。 五、投资建议 我们推荐人工智能网络安全龙头启明星辰,对应2017-2018年PE分别为38倍、28.6倍。从历史PE(TTM)看,启明星辰市盈率大部分时间处于56-75倍之间,截止3月10日市盈率只有59倍,估值处于历史水平偏下。 本文转自d1net(转载)

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册