This file contains hidden or 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
package info.thecodinglive.member.model; | |
import java.io.Serializable; | |
import java.time.LocalDateTime; | |
import javax.persistence.Column; | |
import javax.persistence.EntityListeners; | |
import javax.persistence.MappedSuperclass; | |
import org.springframework.data.annotation.CreatedBy; |
This file contains hidden or 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
/*@Bean | |
public Filter characterEncodingFilter() { | |
CharacterEncodingFilter characterEncodingFilter = new CharacterEncodingFilter(); | |
characterEncodingFilter.setEncoding("UTF-8"); | |
characterEncodingFilter.setForceEncoding(true); | |
return characterEncodingFilter; | |
} | |
@Bean | |
public HttpMessageConverter<String> responseBodyConverter() { |
This file contains hidden or 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
echo $pid > $BASE_PATH/namu.pid |
This file contains hidden or 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
#!/bin/bash | |
BASE_PATH="/home/jins/deployjar" | |
kill `cat $BASE_PATH/namu.pid` | |
rm $BASE_PATH/namu.pid |
This file contains hidden or 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
trace=org.springframework.transaction |
This file contains hidden or 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
@EnableAutoConfiguration | |
public class AutoPackageTest { | |
@Test | |
public void checkAutoPackage(){ | |
SpringApplication app = | |
new SpringApplication(AutoPackageTest.class); | |
app.setBannerMode(Banner.Mode.OFF); | |
app.setLogStartupInfo(false); | |
String[] args = {"--debug"}; | |
ConfigurableApplicationContext c = app.run(args); |
This file contains hidden or 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
package info.thecodinglive.basic; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.Enumeration; |
This file contains hidden or 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
//capcha | |
compile group: 'com.google.code.maven-play-plugin.org.playframework', name: 'jj-imaging', version: '1.1' | |
compile group: 'com.google.code.maven-play-plugin.org.playframework', name: 'jj-simplecaptcha', version: '1.1' |
This file contains hidden or 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
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
int main() | |
{ | |
std::cout << "openCV version" << CV_VERSION << std::endl; | |
cv::Mat img; | |
cv::namedWindow("test01", CV_WINDOW_AUTOSIZE); | |
img = cv::imread("test1.png", CV_LOAD_IMAGE_COLOR); |
This file contains hidden or 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
QUserEntity qUserEntity = QUserEntity.userEntity; | |
JPQLQuery<UserEntity> query = from(qUserEntity); | |
List<UserEntity> resultlist = query.where(qUserEntity.username.like(keyword)).fetch(); | |
return resultlist; |