{"id":1223,"date":"2024-01-29T23:13:55","date_gmt":"2024-01-30T07:13:55","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/java-ch\/?p=1223"},"modified":"2024-01-29T23:14:56","modified_gmt":"2024-01-30T07:14:56","slug":"java-on-visual-studio-code-2024-1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java-ch\/java-on-visual-studio-code-2024-1\/","title":{"rendered":"Java on Visual Studio Code\u7684\u66f4\u65b0 \u2013 2024\u5e741\u6708"},"content":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6b22\u8fce\u6765\u5230Visual Studio Code for Java 2024\u5e74\u7684\u7b2c\u4e00\u671f\u66f4\u65b0\uff01\u63d0\u524d\u795d\u613f\u5927\u5bb6\u6625\u8282\u5feb\u4e50\uff01\u5728\u672c\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5c06\u6709\u5173\u4e8eJDK21\u3001\u6d4b\u8bd5\u8986\u76d6\u7387\u754c\u9762\u4ee5\u53ca\u7528\u6237\u4f53\u9a8c\u76f8\u5173\u7684\u66f4\u65b0\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb\u5427\uff01<\/p>\n<h3><strong>Java 21 \u529f\u80fd\u652f\u6301\u66f4\u65b0<\/strong><\/h3>\n<p>\u6b63\u5982\u6211\u4eec\u5728\u53bb\u5e74 12 \u6708\u7684<a href=\"https:\/\/devblogs.microsoft.com\/java\/2-5-million-java-developers-on-visual-studio-code\/\">\u8def\u7ebf\u56fe\u535a\u5ba2\u6587\u7ae0\u4e2d<\/a>\u6240\u5206\u4eab\u7684\u90a3\u6837\uff0c\u96c6\u6210 JDK 21 \u652f\u6301\u662f\u6211\u4eec\u5bf9\u589e\u5f3a\u6838\u5fc3\u4f53\u9a8c\u7684\u91cd\u70b9\u3002\u5728JDK21\u53d1\u5e03\u540e\uff0c\u6211\u4eec\u505a\u4e86\u5f88\u591a\u52aa\u529b\u6765\u652f\u6301\u5b83\u7684\u65b0\u7279\u6027\u3002\u5728\u8fd9\u91cc\u6211\u4eec\u5f88\u9ad8\u5174\u5206\u4eab\u6211\u4eec\u7684\u76ee\u524d\u8fdb\u5ea6\u3002\u4ee5\u4e0b\u662f\u6211\u4eec\u5f53\u524d\u652f\u6301\u548c\u4ecd\u5728\u5f00\u53d1\u4e2d\u7684\u529f\u80fd\u7684\u72b6\u6001\u3002<\/p>\n<p>\u5f53\u524d\u72b6\u6001<\/p>\n<table style=\"width: 64%; height: 660px;\" width=\"64%\">\n<tbody>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">430\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/430\">\u5b57\u7b26\u4e32\u6a21\u677f\uff08\u9884\u89c8\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">431\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/431\">\u6709\u5e8f\u96c6\u5408<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">439\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/439\">\u5206\u4ee3ZGC<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">440\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/440\">\u8bb0\u5f55\u6a21\u5f0f<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">441\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/441\">switch\u7684\u6a21\u5f0f\u5339\u914d<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">442\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/442\">\u5916\u90e8\u51fd\u6570\u548c\u5185\u5b58 API\uff08\u7b2c\u4e09\u6b21\u9884\u89c8\u7248\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">443\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/443\">\u672a\u547d\u540d\u6a21\u5f0f\u548c\u53d8\u91cf\uff08\u9884\u89c8\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #ff9900;\"><strong>\u6b63\u5728\u8fdb\u884c\u4e2d<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">444\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/444\">\u865a\u62df\u7ebf\u7a0b<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">445\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/445\">\u672a\u547d\u540d\u7c7b\u548c\u5b9e\u4f8b\u4e3b\u8981\u65b9\u6cd5\uff08\u9884\u89c8\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #ff9900;\"><strong>\u6b63\u5728\u8fdb\u884c\u4e2d<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">446\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/446\">\u4f5c\u7528\u57df\u503c\uff08\u9884\u89c8\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">448\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/448\">Vector API\uff08\u7b2c\u516d\u4e2a\u5b75\u5316\u5668\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">449\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/449\">\u5f03\u7528 Windows 32 \u4f4d x86 \u79fb\u690d<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">451\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/451\">\u51c6\u5907\u7981\u6b62\u52a8\u6001\u52a0\u8f7d\u4ee3\u7406<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">452\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/452\">\u5bc6\u94a5\u5c01\u88c5\u673a\u5236API<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"height: 44px; width: 7%;\" width=\"7%\">453\uff1a<\/td>\n<td style=\"height: 44px; width: 71%;\" width=\"71%\"><a href=\"https:\/\/openjdk.org\/jeps\/453\">\u7ed3\u6784\u5316\u5e76\u53d1\uff08\u9884\u89c8\u7248\uff09<\/a><\/td>\n<td style=\"height: 44px; width: 77%;\" width=\"77%\"><span style=\"color: #008000;\"><strong>\u5df2\u652f\u6301<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u6211\u4eec\u5c06\u7ee7\u7eed\u5f00\u53d1\u5269\u4f59\u529f\u80fd\uff0c\u5e76\u5f88\u5feb\u518d\u6b21\u5206\u4eab\u66f4\u65b0\u3002\u5982\u60a8\u4e0d\u9700\u8981\u4f7f\u7528\u90a3\u4e9b\u672a\u652f\u6301\u7684\u7279\u6027\uff0c\u60a8\u5df2\u7ecf\u53ef\u4ee5\u5728VS Code Java\u4f7f\u7528JDK21\u3002<\/p>\n<h3><strong>\u6d4b\u8bd5\u8986\u76d6\u7387\u7528\u6237\u4f53\u9a8c\u66f4\u65b0<\/strong><\/h3>\n<p>\u5728\u6211\u4eec\u4e4b\u524d\u7684\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5206\u4eab\u4e86\u5df2\u7ecf\u53ef\u4ee5\u5728 Visual Studio Code Insider \u7248\u672c\u4e2d\u4f7f\u7528\u7684<a href=\"https:\/\/devblogs.microsoft.com\/java\/java-on-visual-studio-code-update-december-2023\/\">\u65b0\u6d4b\u8bd5\u8986\u76d6\u7387\u529f\u80fd\u3002<\/a>\u7136\u800c\uff0c\u4e4b\u524d\u7684\u529f\u80fd\u9700\u8981\u7528\u6237\u9009\u62e9\u201c\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u6267\u884c(<strong>Execute Using Profile<\/strong>)\u201d\u624d\u80fd\u770b\u5230\u8986\u76d6\u7ed3\u679c\uff0c\u8fd9\u5e76\u4e0d\u76f4\u89c2\u3002\u6b64\u5916\uff0c\u7f16\u8f91\u5668\u533a\u57df\u4e2d\u6ca1\u6709\u660e\u663e\u63d0\u793a\u60a8\u7684\u4ee3\u7801\u662f\u5426\u88ab\u8986\u76d6\u3002\u5728\u6211\u4eec\u6700\u65b0\u7684\u9884\u53d1\u5e03\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u6539\u8fdb\u4e86\u8fd9\u4e24\u4e2a\u95ee\u9898\u3002\u73b0\u5728\uff0c\u60a8\u53ea\u9700\u5355\u51fb\u201c\u8c03\u8bd5\u6d4b\u8bd5\u201d\u65c1\u8fb9\u7684\u201c\u8fd0\u884c\u8986\u76d6\u7387\u6d4b\u8bd5(<strong>Run with Coverage<\/strong>)\u201d\u6309\u94ae\u5373\u53ef\u83b7\u5f97\u8986\u76d6\u7387\uff08\u8bf7\u6ce8\u610f\uff0c\u8be5\u56fe\u6807\u76ee\u524d\u662f\u4e00\u4e2a\u6d4b\u8bd5\u56fe\u6807\uff0c\u5e76\u5c06\u53d1\u751f\u53d8\u5316\uff09\u3002\u8fd9\u662f\u4e00\u4e2a\u6f14\u793a\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2023\/12\/test-coverage.gif\" width=\"1920\" height=\"1080\" \/><\/p>\n<p>\u53e6\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u533a\u57df\u4e2d\u5f88\u76f4\u89c2\u5730\u67e5\u770b\u4ee3\u7801\u662f\u5426\u5df2\u7ecf\u88ab\u6d4b\u8bd5\u8986\u76d6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/01\/coveragevisualization.gif\" \/><\/p>\n<p>\u8981\u4f7f\u7528\u6d4b\u8bd5\u8986\u76d6\u7387\u529f\u80fd\uff0c\u8bf7\u786e\u4fdd\u60a8\u5b89\u88c5\u4e86<a href=\"https:\/\/code.visualstudio.com\/insiders\/\">Visual Studio Code Insiders<\/a>\u548c<strong>Pre-release\u7248\u672c<\/strong>\u7684<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-pack\">Extension Pack for Java <\/a>\u3002<\/p>\n<h3><strong>Java \u8bed\u8a00\u670d\u52a1\u5668\u72b6\u6001\u7528\u6237\u4f53\u9a8c\u6539\u8fdb<\/strong><\/h3>\n<p>\u53e6\u4e00\u4e2a\u7528\u6237\u4f53\u9a8c\u6539\u8fdb\u662f\u5173\u4e8e Java \u8bed\u8a00\u670d\u52a1\u5668\u72b6\u6001\u3002\u4ee5\u524d\uff0c\u7528\u6237\u53ea\u80fd\u5728\u5f53\u524d\u6253\u5f00\u6587\u4ef6\u662fJava\u4ee3\u7801\u7684\u65f6\u5019\u770b\u5230<strong>{} \u72b6\u6001\u56fe\u6807\u3002<\/strong>\u8fd9\u5bf9\u4e8e\u8bb8\u591a\u7528\u6237\u4ee5\u53ca\u5904\u7406\u591a\u8bed\u8a00\u9879\u76ee\u7684\u7528\u6237\u6765\u8bf4\u90fd\u5f88\u4e0d\u65b9\u4fbf\uff0c\u56e0\u4e3a Java \u9879\u76ee\u53ef\u80fd\u5305\u542b\u5176\u4ed6\u7c7b\u578b\u7684\u6587\u4ef6\u3002\u5728\u6700\u65b0\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u5bf9\u72b6\u6001\u56fe\u6807\u8fdb\u884c\u4e86\u6539\u8fdb\u3002\u8be5\u56fe\u6807\u73b0\u5728\u4e0e<strong>{}<\/strong>\u5e73\u884c\uff0c\u4ee5\u4fbf\u4e8e\u8bbf\u95ee\u3002\u53e6\u5916\uff0c\u73b0\u5728\u53ea\u8981\u6fc0\u6d3b\u4e86Java\u63d2\u4ef6\uff0c\u65e0\u8bba\u5f53\u524d\u6253\u5f00\u7684\u6587\u4ef6\u662f\u4ec0\u4e48\uff0c\u56fe\u6807\u90fd\u4f1a\u663e\u793aJava\u8bed\u8a00\u670d\u52a1\u5668\u7684\u72b6\u6001\u3002\u4e0b\u9762\u7684\u56fe\u7247\u5c55\u793a\u4e86\u5dee\u5f02\u3002<\/p>\n<p><strong>\u66f4\u65b0\u524d<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/01\/before.png\" width=\"607\" height=\"278\" \/><\/p>\n<p><strong>\u66f4\u65b0\u540e<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/devblogs.microsoft.com\/java\/wp-content\/uploads\/sites\/51\/2024\/01\/after.png\" width=\"332\" height=\"169\" \/><\/p>\n<h3><strong>\u4fee\u590d\u201c\u7f16\u8f91\u5668\u5185\u5bb9\u4e0d\u540c\u6b65\u201d\u95ee\u9898<\/strong><\/h3>\n<p>\u63d2\u4ef6\u7684\u53ef\u9760\u6027\u4e00\u76f4\u662f\u6211\u4eec\u7684\u9996\u8981\u4efb\u52a1\uff0c\u6700\u8fd1\u6211\u4eec\u53d1\u73b0\u4e86\u4e00\u4e2a<a href=\"https:\/\/github.com\/eclipse-jdtls\/eclipse.jdt.ls\/issues\/2955\">\u95ee\u9898<\/a>\uff0c\u5bfc\u81f4\u7f16\u8f91\u5668\u5185\u5bb9\u4e0e Java \u8bed\u8a00\u670d\u52a1\u5668\u4e0d\u540c\u6b65\uff0c\u8fdb\u800c\u4f1a\u62a5\u544a\u8fc7\u65f6\u7684\u9519\u8bef\u3002\u6211\u4eec\u7684\u8c03\u67e5\u548c GitHub \u4e0a\u7684\u7528\u6237\u90fd\u62a5\u544a\u4e86\u8fd9\u4e00\u70b9\u3002<\/p>\n<p>\u6211\u4eec\u5df2\u7ecf\u53d1\u5e03\u4e86\u9488\u5bf9\u6b64\u95ee\u9898\u7684\u4fee\u590d\u7a0b\u5e8f\u3002\u53d1\u5e03\u540e\uff0c\u6211\u4eec\u89c2\u5bdf\u5230\u4e8b\u4ef6\u7684\u53d1\u751f\u7387\u663e\u7740\u51cf\u5c11\u3002\u5982\u679c\u60a8\u9047\u5230\u4efb\u4f55\u5176\u4ed6\u95ee\u9898\uff0c\u8bf7\u968f\u65f6\u5728\u6b64\u5904<a href=\"https:\/\/github.com\/microsoft\/vscode-java-pack\/issues\">\u521b\u5efa\u95ee\u9898<\/a>\u3002<\/p>\n<h3><strong>\u5b89\u88c5 Java \u63d2\u4ef6\u5305<\/strong><\/h3>\n<p>\u8981\u4f7f\u7528\u4e0a\u8ff0\u6240\u6709\u529f\u80fd\uff0c\u8bf7\u5728 Visual Studio Code \u4e0a\u4e0b\u8f7d\u5e76\u5b89\u88c5<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-pack\">Extension Pack for Java<\/a> \u3002<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/09\/javapack.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-819\" src=\"https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/09\/javapack.png\" alt=\"Image javapack\" width=\"1215\" height=\"238\" srcset=\"https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/09\/javapack.png 1215w, https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/09\/javapack-300x59.png 300w, https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/09\/javapack-1024x201.png 1024w, https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/09\/javapack-768x150.png 768w\" sizes=\"(max-width: 1215px) 100vw, 1215px\" \/><\/a><\/p>\n<p>\u5982\u679c\u60a8\u662f\u4e00\u4f4dSpring\u5f00\u53d1\u8005\uff0c\u5e76\u4e14\u6b63\u5728\u7f16\u5199Spring Boot\u76f8\u5173\u7684\u7a0b\u5e8f\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4e0b\u8f7d\u5e76\u5b89\u88c5<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=Pivotal.vscode-boot-dev-pack\">Spring Boot\u63d2\u4ef6\u5305<\/a>\uff0c\u83b7\u5f97\u4e0eSpring Boot\u6709\u5173\u7684\u4e13\u5c5e\u5f00\u53d1\u4f53\u9a8c<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/10\/spring.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-864\" src=\"https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/10\/spring.png\" alt=\"Spring boot extension pack\" width=\"1221\" height=\"224\" srcset=\"https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/10\/spring.png 1221w, https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/10\/spring-300x55.png 300w, https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/10\/spring-1024x188.png 1024w, https:\/\/devblogs.microsoft.com\/java-ch\/wp-content\/uploads\/sites\/59\/2022\/10\/spring-768x141.png 768w\" sizes=\"(max-width: 1221px) 100vw, 1221px\" \/><\/a><\/p>\n<h3><strong style=\"color: inherit; font-family: inherit; font-size: 1.5rem; text-align: var(--bs-body-text-align);\"><span class=\"\">\u53cd\u9988\u4e0e\u5efa\u8bae<\/span><\/strong><\/h3>\n<p class=\"\">2023 \u5e74\uff0cVisual Studio Code \u4e0a\u7684 Java \u4f1a\u6709\u5f88\u591a\u6fc0\u52a8\u4eba\u5fc3\u7684\u66f4\u65b0\uff0c\u4e00\u5982\u65e2\u5f80\uff0c\u60a8\u7684\u53cd\u9988\u548c\u5efa\u8bae\u5bf9\u6211\u4eec\u975e\u5e38\u91cd\u8981\uff0c\u5c06\u6709\u52a9\u4e8e\u6211\u4eec\u672a\u6765\u7684\u4ea7\u54c1\u5851\u9020\u3002\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7ed9\u6211\u4eec\u7559\u4e0b\u53cd\u9988<\/p>\n<ul>\n<li><a href=\"https:\/\/www.research.net\/r\/vscodejava?lang=zh\" target=\"_blank\" rel=\"noopener\">\u586b\u5199\u4e2d\u6587\u95ee\u5377<\/a><\/li>\n<li class=\"\">\u5728\u8fd9\u4e2a\u5e16\u5b50\u4e0b\u7559\u8a00<\/li>\n<li class=\"\">\u5728\u6211\u4eec\u7684GitHub repo\u4e0a<a href=\"https:\/\/github.com\/microsoft\/vscode-java-pack\/issues\/new\/choose\" target=\"_blank\" rel=\"noopener\">\u521b\u5efaIssue<\/a><\/li>\n<li>\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u5230<a href=\"mailto:vscjfeedback@microsoft.com\">vscjfeedback@microsoft.com<\/a><\/li>\n<\/ul>\n<h3 id=\"try-it-out\"><strong>\u8d44\u6e90<\/strong><\/h3>\n<p>\u4ee5\u4e0b\u94fe\u63a5\u548c\u8d44\u6e90\u80fd\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4e86\u89e3Java on Visual Studio Code\u7684\u76f8\u5173\u4fe1\u606f<\/p>\n<ul>\n<li class=\"\">\u4e86\u89e3<a href=\"https:\/\/code.visualstudio.com\/docs\/languages\/java\" target=\"_blank\" rel=\"noopener\">\u66f4\u591a Visual Studio Code\u4e0aJava<\/a>\u7684\u66f4\u591a\u4fe1\u606f<\/li>\n<li class=\"\"><span class=\"goog-text-highlight\">\u9010\u6b65\u63a2\u7d22<\/span><a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-tutorial\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"goog-text-highlight\">\u6709\u5173Visual Studio Code\u7684Java\u6559\u7a0b<\/span><\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6b22\u8fce\u6765\u5230Visual Studio Code for Java 2024\u5e74\u7684\u7b2c\u4e00\u671f\u66f4\u65b0\uff01\u63d0\u524d\u795d\u613f\u5927\u5bb6\u6625\u8282\u5feb\u4e50\uff01\u5728\u672c\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5c06\u6709\u5173\u4e8eJDK21\u3001\u6d4b\u8bd5\u8986\u76d6\u7387\u754c\u9762\u4ee5\u53ca\u7528\u6237\u4f53\u9a8c\u76f8\u5173\u7684\u66f4\u65b0\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb\u5427\uff01 Java 21 \u529f\u80fd\u652f\u6301\u66f4\u65b0 \u6b63\u5982\u6211\u4eec\u5728\u53bb\u5e74 12 \u6708\u7684\u8def\u7ebf\u56fe\u535a\u5ba2\u6587\u7ae0\u4e2d\u6240\u5206\u4eab\u7684\u90a3\u6837\uff0c\u96c6\u6210 JDK 21 \u652f\u6301\u662f\u6211\u4eec\u5bf9\u589e\u5f3a\u6838\u5fc3\u4f53\u9a8c\u7684\u91cd\u70b9\u3002\u5728JDK21\u53d1\u5e03\u540e\uff0c\u6211\u4eec\u505a\u4e86\u5f88\u591a\u52aa\u529b\u6765\u652f\u6301\u5b83\u7684\u65b0\u7279\u6027\u3002\u5728\u8fd9\u91cc\u6211\u4eec\u5f88\u9ad8\u5174\u5206\u4eab\u6211\u4eec\u7684\u76ee\u524d\u8fdb\u5ea6\u3002\u4ee5\u4e0b\u662f\u6211\u4eec\u5f53\u524d\u652f\u6301\u548c\u4ecd\u5728\u5f00\u53d1\u4e2d\u7684\u529f\u80fd\u7684\u72b6\u6001\u3002 \u5f53\u524d\u72b6\u6001 430\uff1a \u5b57\u7b26\u4e32\u6a21\u677f\uff08\u9884\u89c8\uff09 \u5df2\u652f\u6301 431\uff1a \u6709\u5e8f\u96c6\u5408 \u5df2\u652f\u6301 439\uff1a \u5206\u4ee3ZGC \u5df2\u652f\u6301 440\uff1a \u8bb0\u5f55\u6a21\u5f0f \u5df2\u652f\u6301 441\uff1a switch\u7684\u6a21\u5f0f\u5339\u914d \u5df2\u652f\u6301 442\uff1a \u5916\u90e8\u51fd\u6570\u548c\u5185\u5b58 API\uff08\u7b2c\u4e09\u6b21\u9884\u89c8\u7248\uff09 \u5df2\u652f\u6301 443\uff1a \u672a\u547d\u540d\u6a21\u5f0f\u548c\u53d8\u91cf\uff08\u9884\u89c8\uff09 \u6b63\u5728\u8fdb\u884c\u4e2d 444\uff1a \u865a\u62df\u7ebf\u7a0b \u5df2\u652f\u6301 445\uff1a \u672a\u547d\u540d\u7c7b\u548c\u5b9e\u4f8b\u4e3b\u8981\u65b9\u6cd5\uff08\u9884\u89c8\uff09 \u6b63\u5728\u8fdb\u884c\u4e2d 446\uff1a \u4f5c\u7528\u57df\u503c\uff08\u9884\u89c8\uff09 \u5df2\u652f\u6301 448\uff1a Vector API\uff08\u7b2c\u516d\u4e2a\u5b75\u5316\u5668\uff09 \u5df2\u652f\u6301 449\uff1a \u5f03\u7528 Windows 32 [&hellip;]<\/p>\n","protected":false},"author":31999,"featured_media":1232,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2,1,4,3],"tags":[],"class_list":["post-1223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-java-ch","category-open-source","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>\u5927\u5bb6\u597d\uff0c\u6b22\u8fce\u6765\u5230Visual Studio Code for Java 2024\u5e74\u7684\u7b2c\u4e00\u671f\u66f4\u65b0\uff01\u63d0\u524d\u795d\u613f\u5927\u5bb6\u6625\u8282\u5feb\u4e50\uff01\u5728\u672c\u535a\u5ba2\u4e2d\uff0c\u6211\u4eec\u5c06\u6709\u5173\u4e8eJDK21\u3001\u6d4b\u8bd5\u8986\u76d6\u7387\u754c\u9762\u4ee5\u53ca\u7528\u6237\u4f53\u9a8c\u76f8\u5173\u7684\u66f4\u65b0\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb\u5427\uff01 Java 21 \u529f\u80fd\u652f\u6301\u66f4\u65b0 \u6b63\u5982\u6211\u4eec\u5728\u53bb\u5e74 12 \u6708\u7684\u8def\u7ebf\u56fe\u535a\u5ba2\u6587\u7ae0\u4e2d\u6240\u5206\u4eab\u7684\u90a3\u6837\uff0c\u96c6\u6210 JDK 21 \u652f\u6301\u662f\u6211\u4eec\u5bf9\u589e\u5f3a\u6838\u5fc3\u4f53\u9a8c\u7684\u91cd\u70b9\u3002\u5728JDK21\u53d1\u5e03\u540e\uff0c\u6211\u4eec\u505a\u4e86\u5f88\u591a\u52aa\u529b\u6765\u652f\u6301\u5b83\u7684\u65b0\u7279\u6027\u3002\u5728\u8fd9\u91cc\u6211\u4eec\u5f88\u9ad8\u5174\u5206\u4eab\u6211\u4eec\u7684\u76ee\u524d\u8fdb\u5ea6\u3002\u4ee5\u4e0b\u662f\u6211\u4eec\u5f53\u524d\u652f\u6301\u548c\u4ecd\u5728\u5f00\u53d1\u4e2d\u7684\u529f\u80fd\u7684\u72b6\u6001\u3002 \u5f53\u524d\u72b6\u6001 430\uff1a \u5b57\u7b26\u4e32\u6a21\u677f\uff08\u9884\u89c8\uff09 \u5df2\u652f\u6301 431\uff1a \u6709\u5e8f\u96c6\u5408 \u5df2\u652f\u6301 439\uff1a \u5206\u4ee3ZGC \u5df2\u652f\u6301 440\uff1a \u8bb0\u5f55\u6a21\u5f0f \u5df2\u652f\u6301 441\uff1a switch\u7684\u6a21\u5f0f\u5339\u914d \u5df2\u652f\u6301 442\uff1a \u5916\u90e8\u51fd\u6570\u548c\u5185\u5b58 API\uff08\u7b2c\u4e09\u6b21\u9884\u89c8\u7248\uff09 \u5df2\u652f\u6301 443\uff1a \u672a\u547d\u540d\u6a21\u5f0f\u548c\u53d8\u91cf\uff08\u9884\u89c8\uff09 \u6b63\u5728\u8fdb\u884c\u4e2d 444\uff1a \u865a\u62df\u7ebf\u7a0b \u5df2\u652f\u6301 445\uff1a \u672a\u547d\u540d\u7c7b\u548c\u5b9e\u4f8b\u4e3b\u8981\u65b9\u6cd5\uff08\u9884\u89c8\uff09 \u6b63\u5728\u8fdb\u884c\u4e2d 446\uff1a \u4f5c\u7528\u57df\u503c\uff08\u9884\u89c8\uff09 \u5df2\u652f\u6301 448\uff1a Vector API\uff08\u7b2c\u516d\u4e2a\u5b75\u5316\u5668\uff09 \u5df2\u652f\u6301 449\uff1a \u5f03\u7528 Windows 32 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/posts\/1223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/users\/31999"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/comments?post=1223"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/posts\/1223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/media\/1232"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/media?parent=1223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/categories?post=1223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java-ch\/wp-json\/wp\/v2\/tags?post=1223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}