이준호 문자온 커밋
- globals_local.properties db 접속 정보 수정 - mainPage.jsp httpredirect 함수 조건 변경
This commit is contained in:
parent
fd04d03d01
commit
6193b8dab5
@ -28,7 +28,8 @@ Globals.Env = local
|
||||
|
||||
# mysql
|
||||
Globals.DriverClassName=com.mysql.jdbc.Driver
|
||||
Globals.Url=jdbc:mysql://192.168.0.125:3306/mjon
|
||||
#Globals.Url=jdbc:mysql://192.168.0.125:3306/mjon
|
||||
Globals.Url=jdbc:mysql://119.193.215.98:3306/mjon
|
||||
Globals.UserName= mjonUr
|
||||
#Globals.Url=jdbc:mysql://192.168.0.125:3306/mjon_20230221
|
||||
#Globals.UserName= mjonUr_20230221
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd">
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
||||
http://www.springframework.org/schema/util
|
||||
http://www.springframework.org/schema/util/spring-util-4.0.xsd">
|
||||
|
||||
<!-- 환경설정 기본정보를 globals.properties 에서 참조하도록 propertyConfigurer 설정 -->
|
||||
<bean id="propertyConfigurer"
|
||||
@ -11,6 +14,7 @@
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
<util:properties id="property" location="classpath:/egovframework/egovProps/globals_#{systemProperties['spring.profiles.active']}.properties" />
|
||||
|
||||
<!-- datasource 설정(propertyConfigurer 활용) -->
|
||||
<alias name="dataSource-${Globals.DbType}" alias="dataSource" />
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<spring:eval expression="@property['Globals.Env']" var="Env"/>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="/publish/css/main.css">
|
||||
@ -15,7 +17,9 @@ var blineCode = "${blineCode}";
|
||||
|
||||
$(document).ready(function() {
|
||||
// http => https 로 이동
|
||||
if(${Env eq 'prod'}){
|
||||
httpsRedirect();
|
||||
}
|
||||
|
||||
// 슬라이드 이미지 변경
|
||||
//setMainSlideImgChange();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user