nbs0105 / BOOT_CMS star
문성진 문성진 2022-01-17
go
@9e6afaa164c87e301b0e1a208280f2c150ee5ec0
base/Documents/MySql_기본데이터.sql
--- base/Documents/MySql_기본데이터.sql
+++ base/Documents/MySql_기본데이터.sql
@@ -183,7 +183,7 @@
 '<p>학교명 : $SITE_NM$ <br />전화번호 : $PHONE_NO$ <br />팩스번호 : $FAX_NO$ <br />개인정보처리방침</p>',
 '<p>학교명 : $SITE_NM$ <br />전화번호 : $PHONE_NO$ <br />팩스번호 : $FAX_NO$ <br />$SITE_NM$ 가입약관</p>',
 '<p>학교명 : $SITE_NM$ <br />전화번호 : $PHONE_NO$ <br />팩스번호 : $FAX_NO$ <br />$SITE_NM$ 이메일수집거부</p>',
-'Y','','<p>학교명 : $SITE_NM$ <br />전화번호 : $PHONE_NO$ <br />팩스번호 : $FAX_NO$ <br />$SITE_NM$ 저작권신고서비스</p>','','개발','000-0000-0000','000-0000-0000','주소','N','N','Y','4','20','Y','Y','Y','6','LYTSRC_0000000000001','','SITE_201210250244444490.jpg','','슬로건대체텍스트','','');
+'Y','','<p>학교명 : $SITE_NM$ <br />전화번호 : $PHONE_NO$ <br />팩스번호 : $FAX_NO$ <br />$SITE_NM$ 저작권신고서비스</p>','1','개발','000-0000-0000','000-0000-0000','주소','N','N','Y','4','20','Y','Y','Y','6','LYTSRC_0000000000001','','SITE_201210250244444490.jpg','','슬로건대체텍스트','','');
 
 /* 기본 메뉴 생성 */
 INSERT INTO comtnsitemnu (MENU_NM, MENU_ID, UPPER_MENU_ID, HTML_CN, EXPSR_USE_AT, USE_AT, HTML_USE_AT, CNTNTS_TY_CODE, URL, COMPOSITION_TY_CODE, PROGRM_ID, NWD_AT, STYLE_CN, SCRIPT_CN, FRST_REGISTER_PNTTM, 
base/src/main/java/egovframework/com/auth/service/impl/NaverLoginServiceImpl.java
--- base/src/main/java/egovframework/com/auth/service/impl/NaverLoginServiceImpl.java
+++ base/src/main/java/egovframework/com/auth/service/impl/NaverLoginServiceImpl.java
@@ -34,7 +34,7 @@
     private final static String REDIRECT_URI = "http://hufs.petapop.com/auth/login.do";
     private final static String SESSION_STATE = "oauth_state";
     /* 프로필 조회 API URL */
-    private final static String PROFILE_API_URL = "https://api.whalespace.io/oauth2/v1/userinfo";//"https://openapi.naver.com/v1/nid/me";//Api 종류 기본
+    private final static String PROFILE_API_URL = "https://api.whalespace.io/oauth2/v1/userinfo";
     
     //scope URL
     private final static String SCOPE_URL = "https://account.whalespace.io/directory/user.profile.readonly";
@@ -107,17 +107,5 @@
 		Response response = client.newCall(request).execute();
 		
 		return response.body().string();
-    	/*
-        OAuth20Service oauthService =new ServiceBuilder()
-                .apiKey(CLIENT_ID)
-                .apiSecret(CLIENT_SECRET)
-                .callback(REDIRECT_URI).build(NaverLoginApi.instance());
-
-        OAuthRequest request = new OAuthRequest(Verb.GET, PROFILE_API_URL, oauthService);
-        oauthService.signRequest(oauthToken, request);
-        Response response = request.send();
-        
-        return response.getBody();
-        */
     }
 }
base/src/main/java/egovframework/com/auth/web/AuthController.java
--- base/src/main/java/egovframework/com/auth/web/AuthController.java
+++ base/src/main/java/egovframework/com/auth/web/AuthController.java
@@ -54,7 +54,6 @@
         //네이버 
         model.addAttribute("url", naverAuthUrl);
         
-        //return "dataeum/front/test/naverLogin";
         return "redirect:"+naverAuthUrl;
   	}
     
@@ -73,9 +72,6 @@
         
         NaverUser user = gson.fromJson(apiResult, NaverUser.class);
         if(user.getPrimaryEmail() != null) {
-			System.out.println("1. sessionId = " + session.getId());
-			System.out.println("result =====> " + user.toString());
-			
 			session.setAttribute("naverUser", user);
 			model.addAttribute("token", oauthToken.getAccessToken());
         }
@@ -127,29 +123,5 @@
 		printwriter.close();
 		
 	}
-	
-	@RequestMapping(value = "/auth/myinfo2.do")
-	public void myinfo(HttpServletRequest request,HttpServletResponse response) throws Exception {
-		String successYn = "Y";
-		String apiResult = "{\"primaryEmail\":\"tea01@gne.go.kr\",\"sid\":\"Ybzi5lxu7sa8AMhfPUm9Yu2urfxIfT4ZsVaPFvK6QEoP91u2jOn7RU6DKfpdaZu2\",\"userType\":\"tea\",\"name\":{\"givenName\":\"선생\",\"familyName\":\"고\",\"fullName\":\"선생 고\"},\"thumbnailPhotoUrl\":null,\"space\":{\"name\":\"한컴초등학교\",\"code\":\"HANCOM\"}}";
-		
-        JSONObject jo = new JSONObject();
-  		response.setContentType("application/json;charset=utf-8");
-
-		jo.put("successYn", successYn);
-		jo.put("items", apiResult);
-
-		PrintWriter printwriter = response.getWriter();
-		printwriter.println(jo.toString());
-		printwriter.flush();
-		printwriter.close();
-	}
-	
-	//네이버웨일 return auth
-  	@RequestMapping(value="/auth/test.do")
-  	public String test(@ModelAttribute("loginVO") LoginVO loginVO,HttpServletRequest request,HttpServletResponse response,ModelMap model, HttpSession session)throws Exception {
-  		
-        return "/auth/test";
-  	}
 	
 }
(파일 끝에 줄바꿈 문자 없음)
base/src/main/resources/egovframework/egovProps/globals.properties
--- base/src/main/resources/egovframework/egovProps/globals.properties
+++ base/src/main/resources/egovframework/egovProps/globals.properties
@@ -21,7 +21,7 @@
 #Globals.driverClassName = com.mysql.jdbc.Driver
 Globals.driverClassName = core.log.jdbc.driver.MysqlDriver
 #\uac1c\ubc1c
-Globals.DbUrl = jdbc:mysql://gne.edueum.com:3306/base?allowMultiQueries=true
+Globals.DbUrl = jdbc:mysql://gne.edueum.com:3316/base?allowMultiQueries=true
 Globals.DbUser = base_user
 Globals.DbPw = base_pass
 
@@ -52,3 +52,5 @@
 
 #\uc5d1\uc140\ud15c\ud50c\ub9bf \ud3f4\ub354\uba85
 Globals.ExcelTemplateDirectory= xls
+
+
base/src/main/resources/egovframework/spring/context-datasource.xml
--- base/src/main/resources/egovframework/spring/context-datasource.xml
+++ base/src/main/resources/egovframework/spring/context-datasource.xml
@@ -32,20 +32,7 @@
 		<property name="password" value="cait_base_pass"/>
 	</bean>
 	 -->
-	<!-- DB2 -->
-	<!-- 
-	<bean id="dataSource-db2" class="org.springframework.jndi.JndiObjectFactoryBean">  
-	    <property name="jndiName" value="java:comp/env/jdbc/cait" />  
-	</bean> 
-	 -->
-	 <!-- 
-	<bean id="dataSource-db2" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
-		<property name="driverClassName" value="com.ibm.db2.jcc.DB2Driver"/>
-		<property name="url" value="jdbc:db2://192.168.10.111:50000/CAIT" />
-		<property name="username" value="db2admin"/>
-		<property name="password" value="emt6417!"/>
-	</bean>
-	 -->
+	
 	<!-- MYSQL -->
 	<!-- 
 	<bean id="dataSource-mysql" class="org.springframework.jndi.JndiObjectFactoryBean">  
base/src/main/resources/egovframework/spring/context-excel.xml
--- base/src/main/resources/egovframework/spring/context-excel.xml
+++ base/src/main/resources/egovframework/spring/context-excel.xml
@@ -6,13 +6,6 @@
 	xsi:schemaLocation="http://www.springframework.org/schema/beans   
        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
-	<!-- 
-	<bean id="excelZipService"	class="egovframework.rte.fdl.excel.impl.EgovExcelServiceImpl">
-		<property name="propertyPath" value="excelInfo.xml" />
-		<property name="mapClass" value="egovframework.com.sym.ccm.zip.service.impl.EgovCcmExcelZipMapping" />
-		<property name="sqlMapClient" ref="sqlMapClient" />
-	</bean>
-	 -->
 	<bean id="excelDownloadView" class="egovframework.com.cmm.service.ExcelDownloadView" />
 	
 	<bean class="org.springframework.web.servlet.view.BeanNameViewResolver">
base/src/main/resources/egovframework/spring/context-mapper.xml
--- base/src/main/resources/egovframework/spring/context-mapper.xml
+++ base/src/main/resources/egovframework/spring/context-mapper.xml
@@ -12,14 +12,18 @@
 
 	<!-- SqlSession setup for MyBatis Database Layer -->
 	<bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
-		<property name="dataSource" ref="dataSource-${Globals.DbType}" />
-		<property name="configLocation" value="classpath:/egovframework/mapper/mapper-config.xml" />
-		<property name="mapperLocations" value="classpath:/egovframework/mapper/${Globals.DbType}/*.xml" />
+		<property name="dataSource" ref="dataSource" />
+		<property name="configLocation" value="classpath:/egovframework/mapper/config/mapper-config.xml" />
+		<property name="mapperLocations">
+			<list>
+				<value>classpath:/egovframework/mapper/${Globals.DbType}/**/*_SQL.xml</value>
+			</list>
+		</property>
 	</bean>
 	
 	<!-- MapperConfigurer setup for MyBatis Database Layer with @Mapper("deptMapper") in DeptMapper Interface -->
 	<bean class="egovframework.rte.psl.dataaccess.mapper.MapperConfigurer">
-		<property name="basePackage" value="egovframework" />
+		<property name="basePackage" value="egovframework.**.service.impl" />
 	</bean>
     
 </beans>
(파일 끝에 줄바꿈 문자 없음)
 
base/src/main/webapp/clientaccesspolicy.xml (deleted)
--- base/src/main/webapp/clientaccesspolicy.xml
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<access-policy>
-  <cross-domain-access>
-    <policy>
-      <allow-from>
-        <domain uri="*"/>
-      </allow-from>
-      <grant-to>
-        <!-- <socket-resource port="4502-4534" protocol="tcp"/> -->
-		<resource path="/" include-subpaths="true"/>
-      </grant-to>
-    </policy>
-  </cross-domain-access>
-</access-policy>(파일 끝에 줄바꿈 문자 없음)
 
base/src/main/webapp/crossdomain.xml (deleted)
--- base/src/main/webapp/crossdomain.xml
@@ -1,6 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
-<cross-domain-policy>
-  <allow-access-from domain="*"/>
-  <!-- <allow-http-request-headers-from domain="*" headers="*"/> -->
-</cross-domain-policy>
Add a comment
List