The State of Java in 2019 – 2019年Java的现状

最后修改: 2019年 10月 9日

中文/混合/英文(键盘快捷键:t)

I’ve been running the yearly 2019 “State of Java” survey for the last couple of weeks.

过去几周,我一直在进行一年一度的2019年 “Java现状 “调查。

In its 6th year, we had 6707 developers taking the time to go through and answer; if that was you – thank you!

在第六个年头,我们有6707名开发人员抽出时间进行审查和回答;如果那是你的话–谢谢你!”。

Time for the results 🙂

结果的时间 🙂

1. Java Adoption

1.采用java

Even today, Java 8 is still

即使在今天,Java 8仍然是

Not surprisingly, Java 8 is still predominantly used in production:

毫不奇怪,Java 8仍然在生产中占主导地位。

Clearly, Java 8 is here to stay – with a drop from last year at 84.7% to this year at 79.8%.

很明显,Java 8在这里留下了–从去年的84.7%下降到今年的79.8%。

2. Framework Adoption

2.框架的采用

Next, let’s see what the framework story looks this year:

接下来,让我们看看今年的框架故事是什么样子:

As opposed to Java, this is an entirely different story. Spring 4 was over 50% last year and it’s now hitting 30%, and Spring 5 went up from 24% to 58.4% today.

相对于Java来说,这是一个完全不同的故事。去年Spring 4超过50%,现在已经达到30%,Spring 5从24%上升到今天的58.4%

The Java EE / Jakarta EE numbers are also interesting – going from 9.5% last year to now 14%. The current more stable and well-understood path is clearly helping.

Java EE/Jakarta EE的数字也很有趣–从去年的9.5%到现在的14%。目前更稳定、更容易被理解的路径显然是有帮助的。

3. Spring Boot Adoption

3.采用Spring Boot

On to Spring Boot – again, the adoption and the speed with which the community is moving to the latest version is impressive and speaks volumes about the maturity of the ecosystem.

在Spring Boot方面–同样,社区采用和转向最新版本的速度令人印象深刻,充分说明了生态系统的成熟度。

Boot 2 went up from around the 30% mark last year all the way to 60.5% now:

Boot 2从去年的30%左右一直上升到现在的60.5%

And, the 1.4 or older is starting to drop off the chart here, which is also cool.  

而且,1.4或更老的产品在这里开始下降,这也很好。

4. Build Tools Adoption

4.建设工具的采用

The build tools story is probably the most stable of all of the data here. Maven is exactly where it was last year – dominating the landscape:

构建工具的情况可能是这里所有数据中最稳定的。Maven与去年的情况如出一辙–占据主导地位:

5. IDE Adoption

5.集成开发环境的采用

IDEs, on the other hand, are a different story. IntelliJ is clearly winning the race here, with 61.3% (up from 55.4% last year):

另一方面,IDE是一个不同的故事。IntelliJ显然在这里赢得了比赛,占到了61.3%(高于去年的55.4%):

Eclipse is about half of that – with 32.8% this year, down from 38% last year. Not a surprising pattern here.

日蚀约为一半–今年为32.8%,低于去年的38%。这里没有一个令人惊讶的模式。

6. Web/Application Server Adoption

6.网络/应用服务器的采用

This is the second year where I decided to ask this question – so it’s great to finally have these numbers but also the data from last year to compare to.

今年是我决定问这个问题的第二年–所以很高兴终于有了这些数字,而且还有去年的数据可以比较。

Tomcat is clearly still the winner here, with a cool 73% of the market (up from 62.5% – which is crazy growth).

Tomcat显然仍然是这里的赢家,占据了73%的市场份额(高于62.5%–这是一个疯狂的增长)。

7. Other JVM Languages

7.其他JVM语言

On to other languages on the JVM.

在JVM上的其他语言。

First, what’s somewhat surprising and interesting here is that 62.6% of developers are only using Java, exactly like last year (62.8%). I was definitely expecting this number to go down, given the strong adoption of Kotlin, but it looks like it hasn’t, yet:

首先,这里有些令人惊讶和有趣的是,62.6%的开发者只使用Java,与去年(62.8%)完全一样。鉴于Kotlin的强势采用,我绝对期待这个数字会下降,但看起来还没有:

That being said, Kotlin did still grow from 13% last year to 16.5% today.

也就是说,Kotlin确实还是从去年的13%增长到现在的16.5%。

Groovy fell from 19.3% to 17.4% today, most of that attention likely now going to Kotlin.

Groovy从19.3%下降到今天的17.4%,大部分的注意力现在可能都在Kotlin身上了。

Scala also fell about 1.1%, now to 8.6%.

斯卡拉也下降了约1.1%,现在为8.6%。

So, the trend is clear – Kotlin is chipping away at the other JVM languages, and quite successfully.

因此,趋势很明显–Kotlin正在削弱其他JVM语言,而且相当成功。

8. DBs

8.DBs

And, finally – DBs – with MySQL stable and PostgreSQL growing a full 5% since last year:

最后–数据库–MySQL稳定,PostgreSQL自去年以来增长了整整5%。

9. Conclusion

9.结语

There we have it – a very interesting look at the Java ecosystem now, in 2019.

我们有了它–对现在,也就是2019年的Java生态系统的一个非常有趣的看法。

Some really unexpected bits of data, and definitely some not-so-unexpected ones.

一些真正意想不到的数据,肯定也有一些不那么意想不到的数据。

All in all, a very cool look at the Java community, and again – big thanks to everyone who voted.

总而言之,这是一个非常酷的Java社区,再次感谢所有投票的人。