maven

Export Maven dependencies and maintain repository folder structure

ぃ、小莉子 提交于 2021-02-20 19:15:41
问题 I'm trying to know whether it's possible to export/copy dependencies of a project managed using Maven while maintaining the folder structure that is adopted in the local repository. The root of my need is that I have amassed through almost ten years a lot of artifacts in my local repository (~8GB). I am no longer working on those old projects from previous assignments that drew most of the artifacts in and now, I need to move just what is needed for one single project (~650MB of artifacts) to

Export Maven dependencies and maintain repository folder structure

橙三吉。 提交于 2021-02-20 19:15:39
问题 I'm trying to know whether it's possible to export/copy dependencies of a project managed using Maven while maintaining the folder structure that is adopted in the local repository. The root of my need is that I have amassed through almost ten years a lot of artifacts in my local repository (~8GB). I am no longer working on those old projects from previous assignments that drew most of the artifacts in and now, I need to move just what is needed for one single project (~650MB of artifacts) to

Android开发架构思考及经验总结(下)

我们两清 提交于 2021-02-20 16:53:20
前言 架构设计,到底是什么呢?基于这段时间的学习和自己的一些思考, 我认为架构是基于产品和技术所达成的一种共识 。 我不是专业的架构师,也不是经验老道的开发者。本文目的有三,一是整理这段时间的架构学习和思考以及总结这一年的开发经验教训,二是希望能够与各位朋友探讨移动端App的架构设计,三是希望我们每一个应用开发者能够拥有架构的意识。 个人的水平有限,诸多不对的地方,恳请批评指正。 提示:文中链接需要点击文章末尾处 阅读原文 才能点击。 零、 知识大纲 提示 请先阅读 《Android开发架构思考及经验总结(上)》 五、 技术 前面啰嗦了很多,终于写到这里了。对于一个开发人员来说,怎么做才是我们的关键问题所在。只会Android开发,所以以下只讨论Android。我主要从以下几个方面来谈一谈怎么做这个问题。 1、技术选型 (1)、 开发平台 移动端的开发目前主要是两大阵营Android、IOS,其他的就不多说了。 (2)、 开发工具 编译工具:Eclipse&Ant、AndroidStudio&Gradle,作为Android开发者,目前毫无疑问应该选择AndroidStudio&Gradle; 代码仓库:Git 、SVN ,工具有海龟、AndroidStudio也集成了VCS; Maven仓库:可以使用nexus创建自己的maven私服; 持续集成:Jinkens、Buildbot

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

廉价感情. 提交于 2021-02-20 09:09:51
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

一笑奈何 提交于 2021-02-20 09:09:34
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

别来无恙 提交于 2021-02-20 09:08:45
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

牧云@^-^@ 提交于 2021-02-20 09:06:56
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

谁说我不能喝 提交于 2021-02-20 09:05:26
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

Kafka生产消费API JAVA实现

霸气de小男生 提交于 2021-02-20 08:02:53
Maven依赖: <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version>0.10.0.0</version> </dependency> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>0.10.0.0</version> </dependency> Kafka生产者简单接口JAVA实现: import org.apache.kafka.clients.producer.*; import java.util.Properties; public class KafkaProducer { public static void main(String[] args) throws Exception{ String topic = ""; String brokerList = ""; String message = ""; Properties props = new Properties(); props.put("bootstrap.servers", brokerList); props.put(

Kafka 使用Java实现数据的生产和消费demo

我的梦境 提交于 2021-02-20 07:37:27
前言 在 上一篇 中讲述如何搭建kafka集群,本篇则讲述如何简单的使用 kafka 。不过在使用kafka的时候,还是应该简单的了解下kafka。 Kafka的介绍 Kafka是一种高吞吐量的分布式发布订阅消息系统,它可以处理消费者规模的网站中的所有动作流数据。 Kafka 有如下特性: 以时间复杂度为O(1)的方式提供消息持久化能力,即使对TB级以上数据也能保证常数时间复杂度的访问性能。 高吞吐率。即使在非常廉价的商用机器上也能做到单机支持每秒100K条以上消息的传输。 支持Kafka Server间的消息分区,及分布式消费,同时保证每个Partition内的消息顺序传输。 同时支持离线数据处理和实时数据处理。 Scale out:支持在线水平扩展。 kafka的术语 Broker:Kafka集群包含一个或多个服务器,这种服务器被称为broker。 Topic:每条发布到Kafka集群的消息都有一个类别,这个类别被称为Topic。(物理上不同Topic的消息分开存储,逻辑上一个Topic的消息虽然保存于一个或多个broker上但用户只需指定消息的Topic即可生产或消费数据而不必关心数据存于何处) Partition:Partition是物理上的概念,每个Topic包含一个或多个Partition。 Producer:负责发布消息到Kafka broker。 Consumer