我是德国大学的本科生。
我有一个团队编程课程 .. 我们必须使用 JavaEE/JSF 来制作社交网站 .. 像 LinkedIn。
无论如何,我的小组创造了很多豆子。恕我直言,这太多了。
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>SessionBean1</managed-bean-name>
<managed-bean-class>egispartnerprofile.SessionBean1</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>ApplicationBean1</managed-bean-name>
<managed-bean-class>egispartnerprofile.ApplicationBean1</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>RequestBean1</managed-bean-name>
<managed-bean-class>egispartnerprofile.RequestBean1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Hauptseite</managed-bean-name>
<managed-bean-class>egispartnerprofile.Hauptseite</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>PasswordVergessen</managed-bean-name>
<managed-bean-class>egispartnerprofile.PasswordVergessen</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>registery</managed-bean-name>
<managed-bean-class>egispartnerprofile.registery</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Page1</managed-bean-name>
<managed-bean-class>egispartnerprofile.Page1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<validator>
<validator-id>login.EmailValidator</validator-id>
<validator-class>Login.EmailValidator</validator-class>
</validator>
<managed-bean>
<managed-bean-name>Bewertung</managed-bean-name>
<managed-bean-class>group52.infoholders.Bewertung</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Mitarbeiter</managed-bean-name>
<managed-bean-class>group52.infoholders.Mitarbeiter</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Nachrichten</managed-bean-name>
<managed-bean-class>group52.infoholders.Nachrichten</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Benutrzer</managed-bean-name>
<managed-bean-class>group52.infoholders.Benutzer</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>view$MainPage</managed-bean-name>
<managed-bean-class>egispartnerprofile.view.MainPage</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>view$NavigationBar</managed-bean-name>
<managed-bean-class>egispartnerprofile.view.NavigationBar</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>view$PartnerProfilePage</managed-bean-name>
<managed-bean-class>egispartnerprofile.view.PartnerProfilePage</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>view$PartnerProfileChange</managed-bean-name>
<managed-bean-class>egispartnerprofile.view.PartnerProfileChange</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>view$ProfilePage</managed-bean-name>
<managed-bean-class>egispartnerprofile.view.ProfilePage</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/Page1.jsp</from-view-id>
<navigation-case>
<from-outcome>case1</from-outcome>
<to-view-id>/view/MainPage.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/view/MainPage.jsp</from-view-id>
<navigation-case>
<from-outcome>case1</from-outcome>
<to-view-id>/view/ProfilePage.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>view$ProfileChange</managed-bean-name>
<managed-bean-class>egispartnerprofile.view.ProfileChange</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
实际上 :
- Ever Site 是一个 Bean
- 我们有 3 个应用程序 Bean
- 我只使用 1 个会话 Bean
我认为他们误解了 Beans 的目的。(是吗?还是我错了?!)
我怎样才能让他们清楚...... 1 Session Bean 是(或可能)足够了吗?