Ninja介绍

简介: _______ .___ _______ ____. _____ \ \ | |\ \ | | / _ \ / | \| |/ | \ | ...


 _______  .___ _______        ____.  _____   
 \      \ |   |\      \      |    | /  _  \  
 /   |   \|   |/   |   \     |    |/  /_\  \ 
/    |    \   /    |    \/\__|    /    |    \
\____|__  /___\____|__  /\________\____|__  /
     web\/framework   \/                  \/ 

Ninja is a full stack web framework for Java. Rock solid, fast and super productive.以上是Ninja的官网介绍,忍者的意思,个人还是比较喜欢这个风格。Ninja是基于java语言开源的项目,依赖maven管理,可以说是全栈式web框架了,当然相比较于spring的庞大体系可能不是很有优势,不过这也是喜欢轻量级框架开发人员不可错过的一个轮子。


  git上流行的框架前10大概有这些,前10名基于Java的Web框架进行了一个分析,值得你在今年年底或者明年(2015年)开始的下一个项目考虑使用的框架。数据分析基于以下来源:

  • Job openings (as of today) on a very popular website
  • Discussion threads (for this year) on a very popular Q&A based website, stackoverflow.com
  • Responses on a very popular social bookmarking website, reddit.com

以下是排名前10位的基于Java的,你想用Java开始你的下一个Web开发项目时需要考虑的评估Web框架。

  • Spring MVC/Spring Boot
  • Grails
  • Dropwizard
  • Vert.x
  • Play
  • Spark
  • Vaadin
  • Ninja
  • Jodd
  • jHipster

In order to infer the adoption of above frameworks for enterprise software (web) development, I decided to adopt following methodologies:

  • Perform analysis related with job openings: One could infer the adoption of certain framework across different companies based on current job openings trends. I performed the analysis by taking job openings data from
  • Perform analysis on count of discussion threads this year: In the same way as above, one could infer the adoption of certain framework across different companies based on discussions/questions posted by developers on website such as stackoverflow.com

 

Data Analysis – Java Web Frameworks vis-a-vis Job Openings

Based on count of jobs posted on indeed.com (as of today) which includes the mention of the above frameworks, following is listed the frameworks that represents the frameworks that are getting used for enterprise software development.

  1. Spring MVC
  2. Grails
  3. Play
  4. Vaadin
  5. Dropwizard
  6. Spring Boot
  7. Vert.x

Others such as spark, jodd, ninja, jHipster could not find any job opening. Following is the frequency distribution of above frameworks vis-a-vis job openings.


Java Web Frameworks vs Job Openings

Out of above, Spring MVC stands tall as a winner, and the next two frameworks used mostly are Grails and Play.

 

Data Analysis – Java Web Frameworks vis-a-vis Discussion Threads

Based on count of discussion threads around the web frameworks that happened on stackoverflow.com till this point of time this year, one could infer the adoption of these frameworks across the developer community in general.

  1. Spring MVC
  2. Grails
  3. Play
  4. Spring Boot
  5. Vaadin
  6. Dropwizard
  7. Vert.x

Following is the frequency distribution of above frameworks vis-a-vis discussion threads.

Java Web Frameworks vs Discussion Threads

Out of above, Spring MVC stands tall as a winner and the next two frameworks used mostly are Grails and Play.

 

Top 5 Java Web Frameworks to Consider

Based on above analysis, one could infer that following are top 5 Java-based web frameworks that could be considered for evaluation or adoption for your next project.

  1. Spring MVC
  2. Grails
  3. Play
  4. Spring Boot
  5. Vaadin

 

Following is listed high level details on the above mentioned frameworks:

Spring MVC

Spring MVC is the clear winner. The Spring Web MVC framework (often referred to as simply ‘Spring MVC’) is a rich ‘model view controller’ web framework. The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale, time zone and theme resolution as well as support for uploading files.

 

Grails

Next to Spring MVC comes Grails. Grails is an Open Source, full stack, web application framework for the JVM. It takes advantage of the Groovy programming language and convention over configuration to provide a productive and stream-lined development experience. That said, one could Java as well for web development as desired.

 

Play

Play is found to be used more with Scala than Java. As per the website, Play framework makes it easy to build web applications with Java & Scala. Play is found to be used more with Scala than Java. As per the website, Play framework makes it easy to build web applications with Java & Scala.

 

Vaadin

As per Vaadin website, Vaadin is a Java framework for building modern web applications that look great and perform well. They claim that Vaadin applications look and feel snappy and you’re able to create an instant wow effect. Based on Google Web Toolkit (GWT), Vaadin helps you write both app and UI using Java. Learn more about Vaadin on this page. Following diagram represents the server-side code required to present that output. The image is taken from vaadin.com website.

 

Dropwizard

Dropwizard is a lightweight framework, light enough to get up and running quickly, however, still fall short of building a powerful backend. Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web services. It pulls together stable, mature libraries from the Java ecosystem into a simple, light-weight package. It could be used as a backend with frontend based on AngularJS/Bootstrap as AngularJS has a great REST support.

 

Spring Boot

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications. From web framework perspective, Spring Boot provides auto-configuration for Spring MVC that works well with most applications. Spring Boot comes with embedded Tomcat or Jetty and thus, do not require the deployment of WAR files. Spring Boot is for those who quickly want to get started with Web application.

 

Vert.x

Vert.x is a lightweight, high performance application platform for the JVM that’s designed for modern mobile, web, and enterprise applications. Following is a screenshot representing how you quickly you could create a server in Java.

 

Spark

As per Spark website, Spark is a simple and lightweight Java web framework built for rapid development. As per the website, the framework is most suitable for creating quick and smaller web applications. Spark has been popularly found to be used with AngularJS. Following represents the screenshot for code that would require you to get up and running with your hello world application.

 

Jodd

As per the Jodd website, Jodd is set of Java micro frameworks, tools and utilities, under 1.5 MB. This is quite an interesting one. A framework of size 1.5 MB. Thats sounds real light-weight.  The framework some of the following utilities:

  • BeanUtil: Bean library, type introspection and type conversion tools
  • JDateTime: Date & time processing
  • Props: Properties processing
  • DbOom: ORM framework
  • Madvoc: MVC framework
  • Petite: Dependency injection container
  • Proxetta: Facilitates in AOP
  • Lagarto: HTML parser and DOM builder
  • Jerry: JQuery friendly HTML parser
  • HTTP: Provides Http client
  • Email: Email processing (sending & receiving emails)
  • Decora: Decoration framework for web pages based on templates
  • Json: Used for parsing JSON to objects and serializing objects back to JSON.
  • HtmlStapler: Takes care of packaging of web resources included by HTML page.

 

Ninja

The details regarding this framework can be accessed on their github webpage. Honestly, after I reviewed the page, it is not looking impressive at the outset from the way it is maintained. Its website, http://www.ninjaframework.org is not accessible which is a put-off for me. If anyone has got any experience with this framework, please shout out loud.

 

jHipster

New kid on the block, jHipster is a yeoman generator using Spring Boot and AngularJS.

目录
相关文章
|
前端开发 网络协议 Dubbo
超详细Netty入门,看这篇就够了!
本文主要讲述Netty框架的一些特性以及重要组件,希望看完之后能对Netty框架有一个比较直观的感受,希望能帮助读者快速入门Netty,减少一些弯路。
91585 32
超详细Netty入门,看这篇就够了!
|
9天前
|
开发工具 C++ 开发者
如何判断电脑上已安装了哪些版本的VC运行库?
本文介绍如何检测电脑中已安装的VC运行库(Microsoft Visual C++ Redistributable)版本,涵盖图形界面、命令行、注册表、批处理脚本及专业工具五种方法,适用于不同技术水平用户,帮助准确识别VC++各版本(如2010、2013、2015-2022)及系统架构(x86/x64),确保软件兼容性。
283 12
|
JSON 应用服务中间件 nginx
如何修改kong网关access.log的日志格式
有需要需要调整kong网关的日志格式,调整日志输出内容,由于原来使用docker部署kong网关,并且使用了环境变量指定了网关运行的参数,这里在以下介绍的方式还需要修改容器的环境变量,但是也提供了一条思路,就是部署网关的时候,统一使用kong.conf进行配置
1151 0
|
前端开发 Java 数据库
Java Web开发全攻略:构建高性能Web应用
【4月更文挑战第2天】Java Web开发围绕Servlet和JSP展开,结合Spring/Spring Boot、Struts2、Hibernate等框架构建高性能应用。数据库选择和优化、前端技术如Angular/React/Vue.js以及CI/CD实践是关键。从电子商务到企业系统,Java Web技术为企业与用户互动提供强大平台。持续学习和适应新技术,以应对Web开发挑战。
491 1
Java Web开发全攻略:构建高性能Web应用
|
弹性计算 数据中心 应用服务中间件
阿里云香港云服务器30M大带宽24元_288元一年
阿里云香港云服务器30M大带宽24元_288元一年,阿里云香港服务器中国香港数据中心网络线路类型BGP多线精品,中国电信CN2高速网络高质量、大规格BGP带宽,运营商精品公网直连中国内地,时延更低,优化海外回中国内地流量的公网线路,可以提高国际业务访问质量
376 1
|
数据采集 机器学习/深度学习 数据可视化
纵横小说网站数据采集与分析实现
本文介绍了一个基于Python的纵横中文网数据采集与分析项目,旨在通过技术手段深入分析网络小说市场,掌握读者需求,评估作品质量,并为网站运营提供策略支持。
532 0
纵横小说网站数据采集与分析实现
|
虚拟化 Windows
VMware虚拟机怎么安装win7系统【图文】
VMware虚拟机怎么安装win7系统【图文】
623 0
|
Java 测试技术 API
《手把手教你》系列技巧篇(五十五)-java+ selenium自动化测试-上传文件-下篇(详细教程)
【5月更文挑战第19天】本文介绍了在Web自动化中处理文件上传的挑战,由于Selenium WebDriver不直接支持文件上传,因此需要借助外部工具。文章提到了两种主要的上传方式:基于input框的上传和非input控件的上传。对于非input控件的上传,推荐使用AutoIt,这是一个支持Windows GUI自动化的工具。
209 9
|
人工智能 监控 数据挖掘
数字化转型中的项目管理架构:创新与挑战
【8月更文第7天】简述数字化转型对企业的重要性及其对项目管理带来的影响。 - 概述数字化转型下项目管理架构所面临的机遇与挑战。
729 0
|
数据安全/隐私保护 Docker 容器
青龙面板2.8+ninja京东扫码获取CK搭建
青龙面板2.8+ninja京东扫码获取CK搭建