当前位置:首页 > 技术文章 > 正文内容

Java开发主流框架是什么?(目前java主流开发框架)

arlanguage3个月前 (01-31)技术文章26

一、如果看传统企业开发

Struts、Spring和Hibernate ,简称SSH。

在10多年前,SSH绝对是业内最流行的企业级开发框架。

SSH框架是以Struts框架进行MVC分离、控制业务跳转,同时使用Hibernate进行持久化,最后配合Spring的统一管理进行实现的开发框架。相对于传统的J2EE开发框架来讲性能相对较高、资源消耗相对较少。具体优势如下:

  • 框架进行了代码分层,将Java代码和HTML代码进行分层,大大降低了开发人员的技术难度,不需要同时精通Java后端知识和Web前端知识。
  • 由于使用了Struts框架进行了MVC分离,降低了各层代码间的耦合度。
  • 与Spring的AOP机制相互独立,互不影响。
  • 使用SSH框架开发项目,能够大大提高项目的开发效率与开发质量。
  • 良好的扩展性和维护性。

由于Hibernate比较重,所以SSH框架后来被替换成SSM。M是Mybatis,现在SSM框架还在用。

二、现在的 Web 项目开发,大部分都转向了 SpringBoot 了。使用 SpringBoot 有三个最大的好处:

  1. 配置非常少,可以说是即插即用
  2. 基于 Spring 构建,入手门槛非常低
  3. 直接运行,不需要再考虑 Web 容器的问题

SpringBoot 大部分人都很熟了,不再赘述了。

2.1 推荐一个用Spring Boot搭建的文档在线预览解决方案:

官网及文档 地址:https://kkfileview.keking.cn

kkFileView,一款成熟且开源的文件文档在线预览项目解决方案,对标业内付费产品有【永中office】【office365】【idocv】等,免费!也就是说通过 kkFileView,基本上可以在浏览器中预览常见的各种文件。

项目特性

  1. 支持 office, pdf, cad 等办公文档
  2. 支持 txt, xml(渲染), md(渲染), java, php, py, js, css 等所有纯文本
  3. 支持 zip, rar, jar, tar, gzip 等压缩包
  4. 支持 jpg, jpeg, png, gif, tif, tiff 等图片预览(翻转,缩放,镜像)
  5. 使用 spring-boot 开发,预览服务搭建部署非常简便
  6. rest 接口提供服务,跨语言、跨平台特性(java,php,python,go,php,....)都支持,应用接入简单方便
  7. 抽象预览服务接口,方便二次开发,非常方便添加其他类型文件预览支持
  8. 最最重要 Apache 协议开源,代码 pull 下来想干嘛就干嘛

2.2 再推荐一个Java接口快速开发框架-magic-api

magic-api 是一个基于 Java 的接口快速开发框架,编写接口将通过 magic-api 提供的 UI 界面完成,自动映射为 HTTP 接口,无需定义 Controller、Service、Dao、Mapper、XML、VO 等 Java 对象即可完成常见的 HTTP API 接口开发

访问 http://localhost:9999/magic/web 进行操作

文档地址:https://ssssssss.org

三、想掌握大型互联网分布式架构还需要知道的技术要点:

RPC的设计架构与思想,RPC架构完整调用流程,自定义RPC相应因素详情等;

Netty三大组件,ByteBuffer 之工作原理、应用模式、分配与释放机制、源码剖析等;

RPC工程设计与整体结构,完成RPC服务注册与发现功能;

ZK核心组件剖析,ZK工作流程剖析,网络通信组件、会话接收器、并发处理器等;

Dubbo源码结构、整体设计及层次结构与作用,SPI机制,Dubbo服务注册发现剖析,Dubbo服务高可用,Dubbo服务治理之调用过程、服务降级与限流剖析,网络通信协议详解。

黑马程序员2022最新SSM框架教程_Spring+SpringMVC+Maven高级+SpringBoot+MyBatisPlus企业实用开发技术_哔哩哔哩_bilibili
SSM框架课程是Java从业人员从基础学习阶段进阶到初级程序员的入门课程,也是走向成功的必经之路。 SSM框架课程中共包含5个课程模块,分别是Spring框架、SpringMVC框架、Maven高级、SpringBoot框架、MyBatis-Plus框架。通过本阶段课程的学习,学习者可以掌握大量实用开发技术,企业开发规范,最终实现基于SpringBoot技术实现SSM整合。

四、我称这里是框架能量补给部分,希望能对你们有一点帮助

110 个常用的组件和框架!!!

以下排序是按照从技术组件到开发框架到代码工具:

1.WEB 容器

Tomcat:https://tomcat.apache.org/

Jetty:https://www.jetty.com/

JBoss:https://www.jboss.org/

Resin:https://caucho.com/products/resin

2.数据库

H2:https://h2database.com/

SQLite:https://www.sqlite.org/

MySQL:https://www.mysql.com/

Oracle:https://www.oracle.com/index.html

SQL Server:https://www.microsoft.com/en-us/sql-server/sql-server-downloads

PostgreSQL:https://www.postgresql.org/

MariaDB:https://mariadb.org/

3.缓存

Redis:https://redis.io/

Memcached:https://memcached.org/

4. 消息队列

Kafka:https://kafka.apache.org/

RocketMQ:https://rocketmq.apache.org/

Pulsar:https://pulsar.apache.org/

RabbitMQ:https://www.rabbitmq.com/

5.负载均衡

LVS:http://www.linuxvirtualserver.org/

NGINX:https://www.nginx.com/

6.分布式存储

Ceph:https://docs.ceph.com/

HDFS:https://hadoop.apache.org/docs/r1.2.1/hdfs_design.html

7.数据库集群

MHA:https://github.com/yoshinorim/mha4mysql-manager

8.分布式协调

ZooKeeper:https://zookeeper.apache.org/

9.大数据相关

Storm:https://storm.apache.org/

Flink:https://flink.apache.org/

Spark:https://spark.apache.org/

HBase:https://hbase.apache.org/

Flink:https://flink.apache.org/

ClickHouse:https://clickhouse.com/

Doris:https://doris.apache.org/

9.日志收集与分析

Filebeat:https://www.elastic.co/beats/filebeat

Logstash:https://www.elastic.co/logstash/

Kibana:https://www.elastic.co/kibana

10.搜索

Elasticsearch:https://www.elastic.co/

11.系统监控

SkyWalking;https://skywalking.apache.org/

zipkin:https://zipkin.io/

12.分库分表

ShardingSphere:https://shardingsphere.apache.org/

Mycat2:http://mycatone.top/

13.微服务

Spring Cloud;https://spring.io/projects/spring-cloud

14.RPC 框架

Dubbo;https://github.com/apache/dubbo

gRPC:https://github.com/grpc/grpc-java

15.网络框架

Netty:https://netty.io/

16.MVC 框架

Spring Framework:https://spring.io/projects/spring-framework

Spring Boot:https://spring.io/projects/spring-boot

17.数据层框架

MyBatis:https://github.com/mybatis/mybatis-3

MyBatis-Plus:https://github.com/baomidou/mybatis-plus

Hibernate:http://hibernate.org/orm/

18.数据库连接池

HikariCP:https://github.com/brettwooldridge/HikariCP

Druid:https://github.com/alibaba/druid

19.Redis 客户端

Jedis;https://github.com/xetorthio/jedis

Redisson:https://github.com/redisson/redisson

20.Rest 接口设计与开发

Swagger:https://swagger.io/

21.数据参数校验

Hibernate Validator:https://hibernate.org/validator/

22.安全相关

Shiro:https://shiro.apache.org/

Bouncy Castle:https://www.bouncycastle.org/java.html

jjwt:https://github.com/jwtk/jjwt

23.Reactive 编程

Akka:https://akka.io/

RxJava:https://github.com/ReactiveX/RxJava

vert.x:https://vertx.io/

24.单元测试

JUnit:https://junit.org/junit5/

25.测试辅助

JMockit:http://jmockit.github.io/

Mockito:https://github.com/mockito/mockito

JMeter:http://jmeter.apache.org/

Selenium:https://www.selenium.dev/

26.日志记录

Log4j2:https://logging.apache.org/log4j/

Logback:http://logback.qos.ch/

SLF4J;http://www.slf4j.org/

27.代码质量检查

Checkstyle;https://github.com/checkstyle/checkstyle

Spotbugs;https://github.com/spotbugs/spotbugs

28.代码生成

Lombok:https://projectlombok.org/

29.领域语言定制

ANTLR:https://www.antlr.org/

30.配置文件解析

config;https://github.com/lightbend/config

31.序列化格式

Avro:https://avro.apache.org/

Thrift:https://thrift.apache.org/

Protobuf:https://github.com/protocolbuffers/protobuf

32.模板引擎

Freemarker:https://freemarker.apache.org/

Thymeleaf:https://www.thymeleaf.org/

33.Office 文档处理

POI

https://poi.apache.org/

34.PDF 处理

iText:https://itextpdf.com/en

Apache PDFBox:https://pdfbox.apache.org/

35.高性能队列

Disruptor:https://lmax-exchange.github.io/disruptor/

36.HTTP 客户端

Async Http Client:https://github.com/AsyncHttpClient/async-http-client

Feign:https://github.com/OpenFeign/feign

Retrofit:https://square.github.io/retrofit/

37.二维码解析

ZXing:https://github.com/zxing/zxing

38.定时任务调度

Quartz:https://github.com/quartz-scheduler/quartz

39.JSON 解析

Gson:https://github.com/google/gson

Jackson:https://github.com/FasterXML/jackson

fastjson:https://github.com/alibaba/fastjson

40.分布式事务

Seata:https://github.com/seata/seata

41.属性映射

MapStruct:https://github.com/mapstruct/mapstruct

42.本地缓存

Ehcache:http://www.ehcache.org/

Caffeine:https://github.com/ben-manes/caffeine

43.系统排错与调优

JMH:http://openjdk.java.net/projects/code-tools/jmh/

Arthas:https://github.com/alibaba/arthas

44.命令行参数解析

JCommander:http://jcommander.org/

45.计算机视觉

JavaCV:https://github.com/bytedeco/javacv

45.工具集合

Guava:https://github.com/google/guava

Hutool:https://hutool.cn/

46.构建工具

Maven:https://maven.apache.org/

Gradle:https://gradle.org/

Bazel:https://bazel.build/

47.本地系统开发

JNA:https://github.com/java-native-access/jna

48.JVM

Adopt Open JDK:https://adoptopenjdk.net/

Graal:https://github.com/oracle/graal

Open JDK:https://openjdk.java.net/

49.多版本 Java 支持

jenv:https://github.com/jenv/jenv

50.爬虫相关

Nutch:https://nutch.apache.org/

Crawler4j:https://github.com/yasserg/crawler4j

jsoup:https://jsoup.org/

webmagic:https://github.com/code4craft/webmagic

扫描二维码推送至手机访问。

版权声明:本文由AR编程网发布,如需转载请注明出处。

本文链接:http://www.arlanguage.com/post/1821.html

标签: nginx框架
分享给朋友:

“Java开发主流框架是什么?(目前java主流开发框架)” 的相关文章

nginx开启ssl并把http重定向到https的两种方式

1 简介Nginx是一个非常强大和流行的高性能Web服务器。本文讲解Nginx如何整合https并将http重定向到https。https相关文章如下:(1)Springboot整合https原来这么简单(2)HTTPS之密钥知识与密钥工具Keytool和Keystore-Explorer(3)Sp...

Linux服务器Centos7系统Nginx安装与配置

一 安装编译工具及库文件yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel二首先要安装 PCREPCRE 作用是让 Nginx 支持 Rewrite 功能。2.1 下载 PCRE 安装包cd /usr/...

08《Nginx 入门教程》Nginx 的 Http 模块介绍(中)

在前面介绍完 post-read、server-rewrite、find-config、rewrite 和 post-rewrite 阶段后,我们将继续学习 preaccess 和 access 两个阶段,中间会涉及部分模块,一同进行说明。1. preaccess 阶段在 preaccess 阶段在...

为什么服务器管理用户都使用宝塔面板?

宝塔面板宝塔面板到底是个什么鬼?为什么这么多站长使用宝塔面板?宝塔Linux面板是提升运维效率的服务器管理软件,支持一键LAMP/LNMP/集群/监控/网站/FTP/数据库/JAVA等100多项服务器管理功能。有30个人的专业团队研发及维护,经过200多个版本的迭代,功能全,少出错且足够安全,已获得...

Nginx 最全操作——nginx常用命令(3)

上一篇文章我们设置了nginx的配置,这里简单介绍一下nginx的常用命令。几个常用的命令:nginx -s reload # 向主进程发送信号,重新加载配置文件,热重启 nginx -s reopen # 重启 Nginx nginx -s stop # 快速关闭 nginx -s qu...

在Ubuntu上将Nginx升级到最新版本

在Ubuntu上将Nginx升级到最新版本如果你在Ubuntu上运行nginx,你很快就会发现,操作系统中默认的Ubuntu版本真的很旧。这意味着你需要运行最新版本的Nginx来避免安全问题。这篇文章是关于如何做到这一点。第一件事是找出你使用的是哪个版本。以下是你如何做。$ nginx -v 它应该...