開心生活站

位置:首頁 > IT科技 > 

java,enterprise

IT科技1.21W

<link rel="stylesheet" href="https://js.how234.com/third-party/SyntaxHighlighter/shCoreDefault.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><script type="text/javascript"> SyntaxHighlighter.all(); </script>

java enterprise是什麼,讓我們一起了解一下?

Java Enterprise是針對Java EE項目中開發設計的,幫助開發和部署可移植、健壯、可伸縮且安全的服務器端的Java應用程序,所以web項目大多都在這個視圖中進行開發。

想要了解Enterprise,首先要知道web應用和enterprise應用的關係是怎樣的?

web應用是屬於enterprise應用的一部分,enterprise應用可以包括web應用,jms應用,ejb應用,連接器應用等等 。enterprise應用一般都需要application server來支持,需要有其它更多的容器,比如weblogic中有ejb容器,JMS容器,websphere中有MQ容器,但web應用只需要有一個web container就可以,一般的app server都會自帶這個最基本的web容器。

java enterprise

所以一個enterprise中可以只有一個web應用,也可以存在多個其它單元,比如多個web和其它應用。但一個web應用只是其中一個子單元而已,不能包含其它不同類型的應用 。

那麼如何在IDEA上創建Java Enterprise項目?

創建Java Enterprise項目就是在IDEA上創建動態web項目,它的具體步驟為:

1.Click Create New Project on the Welcome screen, or select File | New | Project. The New Project wizard opens. 2.In the left-hand pane, select Java Enterprise. 3.From the Project SDK list, select the JDK that you want to use in your project. If the JDK is installed on your computer, but not defined in the IDE, select Add JDK and specify the path to the JDK home directory. If you don't have the necessary JDK on your computer, select Download JDK. 4.Specify your application server. We'll use GlassFish Server. If GlassFish is not defined in IntelliJ IDEA yet, click New to the right of the Application Server field and select Glassfish Server. In the Glassfish Server dialog, specify the GlassFish Server installation directory. 5.Under Additional Libraries and Frameworks, select the Web Application checkbox.

標籤:java enterprise