This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomFreeMarkerView extends FreeMarkerView { | |
@Override | |
protected void exposeHelpers(Map<String, Object> model, HttpServletRequest request) throws Exception { | |
super.exposeHelpers(model, request); | |
model.put("enums", BeansWrapper.getDefaultInstance().getEnumModels()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#import "/spring.ftl" as spring /> | |
<a href="<@spring.url '/userUrl'/>">ユーザ</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target | |
.classpath | |
.settings | |
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WAR="/home/cy_jenkins/.jenkins/jobs/hogeapp-build/workspace/target/hogeapp.war" | |
curl --upload-file $WAR "http://hogeuser:fuga@targethost:8080/manager/text/deploy?path=/hogeapp&update=true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<finalName>myapp</finalName> | |
<resources> | |
<resource> | |
<directory>${resources.directory}</directory> | |
</resource> | |
<resource> | |
<directory>${basedir}/src/main/resources</directory> | |
</resource> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `hoge` ( | |
`user_id` char(32) NOT NULL default '', | |
`category_1` smallint(5) unsigned default NULL, | |
`category_1_point` int(10) unsigned default NULL, | |
`category_2` smallint(5) unsigned default NULL, | |
`category_2_point` int(10) unsigned default NULL, | |
PRIMARY KEY (`user_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error updating database. Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data truncated for column 'hoge_colum' at row 133 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CATALINA_OPTS (Optional) Java runtime options used when the "start", | |
# "run" or "debug" command is executed. | |
# Include here and not in JAVA_OPTS all options, that should | |
# only be used by Tomcat itself, not by the stop process, | |
# the version command etc. | |
# Examples are heap size, GC logging, JMX ports etc. | |
. | |
. | |
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monitorRole readonly | |
controlRole readwrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($xml->{'connector'}->{'http-'.$PORT}->{'threadInfo'}->[0]->{'currentThreadsBusy'} && | |
$xml->{'connector'}->{'http-'.$PORT}->{'threadInfo'}->[0]->{'currentThreadCount'}) { | |
print "busy.value " . $xml->{'connector'}->{'http-'.$PORT}->{'threadInfo'}->[0]->{'currentThreadsBusy'} . "\n"; | |
print "idle.value " . | |
($xml->{'connector'}->{'http-'.$PORT}->{'threadInfo'}->[0]->{'currentThreadCount'} - | |
$xml->{'connector'}->{'http-'.$PORT}->{'threadInfo'}->[0]->{'currentThreadsBusy'}) . "\n"; | |
} else { | |
print "busy.value U\n"; | |
print "idle.value U\n"; | |
} |