From 047ce14b0bfb7b0f435ca819d5f06083dd1edd6d Mon Sep 17 00:00:00 2001 From: Ksenomorfa Date: Tue, 21 Jun 2016 08:06:43 +0300 Subject: [PATCH] =?UTF-8?q?*=20=D0=9D=D0=B0=D1=87=D0=B0=D1=82=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D0=B4=20Spring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BugTracker.iml | 13 ++++++++---- META-INF/application.xml | 7 ------- pom.xml | 19 +++++++++++++++++- .../{webapp => }/resources/hibernate.cfg.xml | 0 .../resources/hibernate.properties | 0 src/main/resources/log4j.properties | 4 ++++ .../webapp/WEB-INF/dispatcher-servlet.xml | 4 +--- src/main/webapp/WEB-INF/pages/index.html | 20 +++++++++++++++++++ src/main/webapp/WEB-INF/pages/index.jsp | 3 ++- src/main/webapp/WEB-INF/web.xml | 1 - 10 files changed, 54 insertions(+), 17 deletions(-) delete mode 100644 META-INF/application.xml rename src/main/{webapp => }/resources/hibernate.cfg.xml (100%) rename src/main/{webapp => }/resources/hibernate.properties (100%) create mode 100644 src/main/resources/log4j.properties create mode 100644 src/main/webapp/WEB-INF/pages/index.html diff --git a/BugTracker.iml b/BugTracker.iml index 3b52a80..b64a5b2 100644 --- a/BugTracker.iml +++ b/BugTracker.iml @@ -11,7 +11,8 @@ - + + @@ -30,7 +31,7 @@ - + @@ -55,6 +56,7 @@ + @@ -63,8 +65,10 @@ - + + + @@ -80,6 +84,8 @@ + + @@ -105,6 +111,5 @@ - \ No newline at end of file diff --git a/META-INF/application.xml b/META-INF/application.xml deleted file mode 100644 index 8533088..0000000 --- a/META-INF/application.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/pom.xml b/pom.xml index 42e9d40..1256166 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,17 @@ org.slf4j - slf4j-simple + jcl-over-slf4j + 1.6.2 + + + org.slf4j + slf4j-api + 1.6.2 + + + org.slf4j + slf4j-log4j12 1.6.2 @@ -75,6 +85,11 @@ jboss-logging 3.3.0.Final + + org.apache.logging.log4j + log4j-core + 2.6 + org.jboss.spec.javax.transaction jboss-transaction-api_1.1_spec @@ -172,6 +187,8 @@ 1.8 1.8 + true + true diff --git a/src/main/webapp/resources/hibernate.cfg.xml b/src/main/resources/hibernate.cfg.xml similarity index 100% rename from src/main/webapp/resources/hibernate.cfg.xml rename to src/main/resources/hibernate.cfg.xml diff --git a/src/main/webapp/resources/hibernate.properties b/src/main/resources/hibernate.properties similarity index 100% rename from src/main/webapp/resources/hibernate.properties rename to src/main/resources/hibernate.properties diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties new file mode 100644 index 0000000..15ae367 --- /dev/null +++ b/src/main/resources/log4j.properties @@ -0,0 +1,4 @@ +log4j.rootCategory=INFO, console +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%p %c: %m%n \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/dispatcher-servlet.xml b/src/main/webapp/WEB-INF/dispatcher-servlet.xml index 77c26d3..26d903c 100644 --- a/src/main/webapp/WEB-INF/dispatcher-servlet.xml +++ b/src/main/webapp/WEB-INF/dispatcher-servlet.xml @@ -8,9 +8,7 @@ http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd - http://www.springframework.org/schema/tx - http://www.springframework.org/schema/tx/spring-tx-4.2.xsd - "> + "> diff --git a/src/main/webapp/WEB-INF/pages/index.html b/src/main/webapp/WEB-INF/pages/index.html new file mode 100644 index 0000000..de4a583 --- /dev/null +++ b/src/main/webapp/WEB-INF/pages/index.html @@ -0,0 +1,20 @@ + + + Стартовая страница Баг-трекера + + + + + + +
+ +
Здесь будет заголовок с переходом на главную + кнопки: + + +
+ +
+
+ + diff --git a/src/main/webapp/WEB-INF/pages/index.jsp b/src/main/webapp/WEB-INF/pages/index.jsp index 8dfbd92..d294af3 100644 --- a/src/main/webapp/WEB-INF/pages/index.jsp +++ b/src/main/webapp/WEB-INF/pages/index.jsp @@ -40,7 +40,8 @@ (возможно просто два поля в заголовке с кнопками Войти\Зарегистрироваться).
Пока для проверки добавляется при каждом обновлении страницы задача в список и выводится ее toString.

- + Переделать все ниже на запрос из модели. + {$task.service <% TaskList.tasks.createTask("Новая задача"); for (int i = 0; i < TaskList.tasks.size(); i++) { diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 294f02a..b28513d 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -25,7 +25,6 @@ / - 30