Skip to content

Commit

Permalink
* Начата переработка под Spring
Browse files Browse the repository at this point in the history
  • Loading branch information
Ksenomorfa committed Jun 21, 2016
1 parent 09b0df0 commit 047ce14
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 17 deletions.
13 changes: 9 additions & 4 deletions BugTracker.iml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
</webroots>
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/webapp/static/resources" />
<root url="file://$MODULE_DIR$/src/main/resources" />
<root url="file://$MODULE_DIR$/src/main/webapp/resources" />
</sourceRoots>
</configuration>
</facet>
Expand All @@ -30,7 +31,7 @@
<naming-strategy-map>
<unit-entry name="hibernate.cfg.xml" />
</naming-strategy-map>
<deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/src/main/webapp/resources/hibernate.cfg.xml" />
<deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/src/main/resources/hibernate.cfg.xml" />
</configuration>
</facet>
<facet type="Spring" name="Spring">
Expand All @@ -55,6 +56,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/webapp/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
Expand All @@ -63,8 +65,10 @@
<orderEntry type="library" name="Java EE 6-Java EE 6" level="project" />
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-simple:1.6.2" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.6.2" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.6.2" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-log4j12:1.6.2" level="project" />
<orderEntry type="library" name="Maven: log4j:log4j:1.2.16" level="project" />
<orderEntry type="library" name="Maven: org.postgresql:postgresql:9.4-1206-jdbc4" level="project" />
<orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
<orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
Expand All @@ -80,6 +84,8 @@
<orderEntry type="library" name="Maven: org.javassist:javassist:3.20.0-GA" level="project" />
<orderEntry type="library" name="Maven: org.hibernate:hibernate-entitymanager:5.1.0.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.0.Final" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.6" level="project" />
<orderEntry type="library" name="Maven: org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:1.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: com.mchange:c3p0:0.9.5" level="project" />
<orderEntry type="library" name="Maven: com.mchange:mchange-commons-java:0.2.9" level="project" />
Expand All @@ -105,6 +111,5 @@
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:1.3.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:1.5.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.7.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:jcl-over-slf4j:1.7.1" level="project" />
</component>
</module>
7 changes: 0 additions & 7 deletions META-INF/application.xml

This file was deleted.

19 changes: 18 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -75,6 +85,11 @@
<artifactId>jboss-logging</artifactId>
<version>3.3.0.Final</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.transaction</groupId>
<artifactId>jboss-transaction-api_1.1_spec</artifactId>
Expand Down Expand Up @@ -172,6 +187,8 @@
<configuration>
<source>1.8</source>
<target>1.8</target>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions src/main/webapp/WEB-INF/dispatcher-servlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
">
">

<context:annotation-config/>

Expand Down
20 changes: 20 additions & 0 deletions src/main/webapp/WEB-INF/pages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<title>Стартовая страница Баг-трекера</title>
<!-- Пока css стили тут, нужно вынести отдельно-->
<link rel="stylesheet" href="resources/clearcss.css">
<link rel="stylesheet" href="resources/index.css">

</head>
<body>
<div class="main">

<div class="header"> Здесь будет заголовок с переходом на главную + кнопки:
<button name="create">Войти\Зарегистрироваться</button>
<button name="create">FAQ</button>
<br>

</div>
</div>
</body>
</html>
3 changes: 2 additions & 1 deletion src/main/webapp/WEB-INF/pages/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
(возможно просто два поля в заголовке с кнопками Войти\Зарегистрироваться).<br>
Пока для проверки добавляется при каждом обновлении страницы задача в список и выводится ее
toString.<br><br>

Переделать все ниже на запрос из модели.
{$task.service
<%
TaskList.tasks.createTask("Новая задача");
for (int i = 0; i < TaskList.tasks.size(); i++) {
Expand Down
1 change: 0 additions & 1 deletion src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>


<session-config>
<session-timeout>30</session-timeout>
</session-config>
Expand Down

0 comments on commit 047ce14

Please sign in to comment.