일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- nodejs
- docker
- spring3
- MariaDB
- FCM
- SpringBoot
- security
- Maven
- ajax
- jquery
- mybatis
- jenkins
- pwa
- git
- NextJS
- mysql
- Tomcat
- Push
- config
- MSsql
- Eclipse
- yona
- popup
- javascript
- Java
- PM2
- centos7
- node.js
- Next.js
- rocky9
- Today
- Total
목록Spring (29)
종이 한장 차이...
- mybatis query 설정. INSERT INTO TEST.dbo.USERINFO ( user_emp ,user_name ,user_cel ) VALUES ( #{userEmp} ,#{userName} ,#{userCel} ); - Dao 부분 public int setUserInfo(UserInfoVO params) { return insert("insertUserInfo", params); } - Service 호출 부분 Dao의 함수를 호출하는 부분에 params는 UserInfoVO 모델이다. mybatis설정 부분의 useGeneratedKeys=true, keyProperty="userCode", keyColumn="user_code" 설정에 의해 쿼리 파라미터로 사용한 UserInfo..
Spring MVC에서 select count() 시 mybatis설정 및 resultType 참고. - Dao 쿼리 결과를 Object로 받은 후 int로 리턴. public int getUserCount(userInfoVO params) { Object obj = selectOne("selectUserCount"); return obj == null ? 0 : (Integer) obj; } - mybatis에서 resultType을 Integer로 설정. SELECT COUNT(*) FROM USERINFO with(nolock) WHERE user_code = #{userCode};
Array에 담긴 JsonData를 controller에서 VO model로 바로 받을 때 참고. 1. jsondata 생성 $(document).on('click','.js_authChangePopup',function(e){ //공통변수 클릭한 요소의 data에서 항목별 값 추출 var ordernum = parseInt($(this).data('ordernum')); var arrayObj = new Array();//전송용 array 객체 선언 $('.js_check').each(function(){//체크된 요소 루프돌면서 data 값 추출 if($(this).is(':checked') == true){ ..
request객체에 담겨오는 브라우저 타입을 체크하여 특정 브라우저가 아닐 경우 지정된 페이지로 redriect 할 때 사용했다. //IE-browser type check: Chrome, Chromium, Firefox 가 아닐 경우 크롬설치 안내 페이지로 redirect String userAgent = request.getHeader("User-Agent"); if(userAgent.indexOf("Trident") > -1 || userAgent.indexOf("msie") > -1 || userAgent.indexOf("Netscape") > -1 || (userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") == -1) || (user..

- 목표 프로젝트구성 1. springboot 2.x 2. Maven 4 3. spring-security 4. mariadb(mysql) 5. mybatis2 6. war 파일 배포 - 이번 포스팅은 springboot2.x로 web 프로젝트를 구성하여 테스트용 jsp 페이지를 출력해 보는 것까지 정리를 한다. 1. springboot Web프로트 생성 2. application.properties 에 DB연결 정보를 설정해 준다. mysql 관련 dependency가 pom.xml에 추가되어 있기 때문에 아래와 같이 DB연결 설정을 기본으로 하지 않을 경우 에러가 발생한다. 해당 설정 값은 추후 mybatis를 설정할 때 한 번 더 세밀하게 수정할 예정이다. spring.datasource.url=j..
WAS 서버의 timeout 설정 외에 war별? 애플리케이션에 별도 session timeout 설정이 필요한 경우... 1. 스프링 씨큐리티 설정 파일에 로그인 성공 시 후처리용 헨들러를 설정한다. public class WebSecurityConfig extends WebSecurityConfigurerAdapter{ /**로그인성공 후처리용 헨들러 * @return */ private SuccessHandlerImpl successHandler() { return new SuccessHandlerImpl(); } ...생략... @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests..