terasolunaorg / terasoluna-gfw-web-blank Goto Github PK
View Code? Open in Web Editor NEWBlank project for web application using TERASOLUNA Server Framework for Java (5.x)
Blank project for web application using TERASOLUNA Server Framework for Java (5.x)
outputted log is following:
date:2013-10-14 00:26:14 thread:ContainerBackgroundProcessor[StandardEngine[Catalina]] X-Track: level:WARN logger:org.dozer.config.GlobalSettings message:Dozer configuration file not found: dozer.properties. Using defaults for all Dozer global properties.
Way to resolve this behavior is 2 ways.
Maybe, Good choice is (1).
related to terasolunaorg/terasoluna-gfw#2
Add as dependency artifact in pom.xml
.
Default typemismatch message is required in application-messages.properties like following
# typemismatch
typeMismatch="{0}" is invalid.
typeMismatch.int="{0}" must be an integer.
typeMismatch.double="{0}" must be an double.
typeMismatch.float="{0}" must be an float.
typeMismatch.long="{0}" must be an long.
typeMismatch.short="{0}" must be an short.
typeMismatch.java.lang.Integer="{0}" must be an integer.
typeMismatch.java.lang.Double="{0}" must be an double.
typeMismatch.java.lang.Float="{0}" must be an float.
typeMismatch.java.lang.Long="{0}" must be an long.
typeMismatch.java.lang.Short="{0}" must be an short.
typeMismatch.java.util.Date="{0}" is not a date.
In blank project for JPA & MyBatis, does not define resultMessagesLoggingInterceptor
& AOP setting.
Need the following setting in domain.xml of JPA & MyBatis.
<bean id="resultMessagesLoggingInterceptor"
class="org.terasoluna.gfw.common.exception.ResultMessagesLoggingInterceptor">
<property name="exceptionLogger" ref="exceptionLogger" />
</bean>
<aop:config>
<aop:advisor advice-ref="resultMessagesLoggingInterceptor"
pointcut="@within(org.springframework.stereotype.Service)" />
</aop:config>
README shoud be written
Copyright (C) 2013 terasoluna.org - > Copyright (C) 2013-2014 terasoluna.org
create for prerelease version 1.0.1.RC1
In detail, refer to terasolunaorg/terasoluna-gfw-web-multi-blank#13.
Add settings for the CodeListInterceptor
in spring-mvc.xml
.
Add <import resource="classpath*:META-INF/spring/**/*-codelist.xml" />
in domain.xml
<context:property-placeholder
location="classpath*:/META-INF/spring/*.properties" />
is required in spring-mvc.xml in order to use @Value
at Controller classes.
There is three differences.
Probably, terasoluna-gfw-web-multi-blank is correct.
1
(terasoluna-gfw-web-multi-blank)
<?xml version="1.0" encoding="UTF-8"?>
(terasoluna-gfw-web-blank)
<!DOCTYPE logback>
2
(terasoluna-gfw-web-multi-blank)
<logger name="org.terasoluna.gfw">
<level value="info" />
</logger>
(terasoluna-gfw-web-blank)
<logger name="org.terasoluna.gfw">
<level value="debug" />
</logger>
3
(terasoluna-gfw-web-multi-blank)
<!-- only for development -->
<logger name="jdbc.resultsettable">
<level value="debug" />
</logger>
(terasoluna-gfw-web-blank)
nothing
use repo.terasoluna.org instead of 54.248.227.230
need to change setting spring security for version 3.2
<repositories>
settings can be omitted because it defined in parent pom file.
Remove <repositories>
settings.
according to terasolunaorg/terasoluna-gfw#75
Currently, removeValue
of UserIdMDCPutFilter
has been set to true
.
We should be remove the removeValue=true
because recommend to use the default setting(removeValue=false
).
Tomcat version for terasoluna-gfw-web-blank is old
<groupId>org.apache.tomcat</groupId>
<version>7.0.40</version>
<tomcat.api.version>7.0.53</tomcat.api.version>
terasoluna-gfw-web-blank need to update for 7.0.53
no dependency for unit test!
Probably, <relativePath />
is needed to avoid trouble with STS's initial import.
<parent>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath />
</parent>
In web.xml, an unnecessary comment(<!-- (1) -->
) exist.
<?xml version="1.0" encoding="UTF-8"?>
<!-- (1) --> <!-- ### here ### -->
<web-app 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-app_3_0.xsd"
version="3.0">
<!-- ... -->
</web-app>
Remove an unnecessary comment.
None
for example
bad:
sed -i -e "s/<description>Blank project using TERASOLUNA Global Framework/<description>Blank project using TERASOLUNA Global Framework (JPA)/g" pom.xml
good:
sed -i -e "s/<description>Web Blank Project using TERASOLUNA Global Framework/<description>Web Blank Project using TERASOLUNA Global Framework (JPA)/g" pom.xml
sed -i -e "s/Web Blank Project/Web Blank Project (JPA)/g" pom.xml
is also OK
See terasolunaorg/terasoluna-gfw-web-multi-blank#145
None
Nothing
Create a sample of test case of unit test.
By utilizing the blank project, is easier that test case samples exists when creating a project.
Add IDEA project file in .gitignore
.
Nothing
should be 1.1.0-SNAPSHOT
now:1.1.0-BUILD-SNAPSHOT
see terasolunaorg/terasoluna-gfw-web-multi-blank#64 (comment)
com.h2database:h2
-> com.h2database:h2::runtime
shaping pom.xml
modification of wording errors in pom.xml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.