merged private server and console to private-cloud
This commit is contained in:
9
server/src/main/resources/application.properties
Normal file
9
server/src/main/resources/application.properties
Normal file
@@ -0,0 +1,9 @@
|
||||
## debug env configuration
|
||||
server.port=8081
|
||||
spring.cache.type=redis
|
||||
spring.redis.host=localhost
|
||||
spring.redis.port=6379
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/irext?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=421aWill.
|
||||
user.data.basedir=/data/
|
||||
37
server/src/main/resources/log4j2-spring.xml
Normal file
37
server/src/main/resources/log4j2-spring.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration>
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout
|
||||
pattern="%style{%d{ISO8601}}{black} %highlight{%-5level }[%style{%t}{bright,blue}] %style{%C{1.}}{bright,yellow}: %msg%n%throwable"/>
|
||||
</Console>
|
||||
|
||||
<RollingFile name="RollingFile"
|
||||
fileName="./logs/spring-boot-logger-log4j2.log"
|
||||
filePattern="./logs/$${date:yyyy-MM}/spring-boot-logger-log4j2-%d{-dd-MMMM-yyyy}-%i.log.gz">
|
||||
<PatternLayout>
|
||||
<pattern>%d %p %C{1.} [%t] %m%n</pattern>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<!-- rollover on startup, daily and when the file reaches
|
||||
10 MegaBytes -->
|
||||
<OnStartupTriggeringPolicy/>
|
||||
<SizeBasedTriggeringPolicy
|
||||
size="10 MB"/>
|
||||
<TimeBasedTriggeringPolicy/>
|
||||
</Policies>
|
||||
</RollingFile>
|
||||
</Appenders>
|
||||
|
||||
<Loggers>
|
||||
<!-- LOG everything at INFO level -->
|
||||
<Root level="info">
|
||||
<AppenderRef ref="Console"/>
|
||||
<AppenderRef ref="RollingFile"/>
|
||||
</Root>
|
||||
|
||||
<!-- LOG "com.baeldung*" at TRACE level -->
|
||||
<Logger name="net.irext" level="trace"></Logger>
|
||||
</Loggers>
|
||||
|
||||
</Configuration>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="net.irext.server.service.mapper.BrandMapper">
|
||||
<resultMap id="BaseResultMap" type="net.irext.server.service.model.Brand">
|
||||
<!--
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu May 04 12:06:44 CST 2017.
|
||||
-->
|
||||
<id column="id" property="id" jdbcType="INTEGER"/>
|
||||
<result column="name" property="name" jdbcType="VARCHAR"/>
|
||||
<result column="category_id" property="categoryId" jdbcType="INTEGER"/>
|
||||
<result column="category_name" property="categoryName" jdbcType="VARCHAR"/>
|
||||
<result column="status" property="status" jdbcType="TINYINT"/>
|
||||
<result column="update_time" property="updateTime" jdbcType="CHAR"/>
|
||||
<result column="priority" property="priority" jdbcType="INTEGER"/>
|
||||
<result column="name_en" property="nameEn" jdbcType="VARCHAR"/>
|
||||
<result column="name_tw" property="nameTw" jdbcType="VARCHAR"/>
|
||||
<result column="contributor" property="contributor" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="net.irext.server.service.mapper.CategoryMapper">
|
||||
<resultMap id="BaseResultMap" type="net.irext.server.service.model.Category">
|
||||
<!--
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu May 04 12:06:44 CST 2017.
|
||||
-->
|
||||
<id column="id" property="id" jdbcType="INTEGER"/>
|
||||
<result column="name" property="name" jdbcType="VARCHAR"/>
|
||||
<result column="status" property="status" jdbcType="TINYINT"/>
|
||||
<result column="update_time" property="updateTime" jdbcType="CHAR"/>
|
||||
<result column="name_en" property="nameEn" jdbcType="VARCHAR"/>
|
||||
<result column="name_tw" property="nameTw" jdbcType="VARCHAR"/>
|
||||
<result column="contributor" property="contributor" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="net.irext.server.service.mapper.CityMapper">
|
||||
<resultMap id="BaseResultMap" type="net.irext.server.service.model.City">
|
||||
<!--
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu May 04 12:06:44 CST 2017.
|
||||
-->
|
||||
<id column="id" property="id" jdbcType="INTEGER"/>
|
||||
<result column="code" property="code" jdbcType="VARCHAR"/>
|
||||
<result column="name" property="name" jdbcType="VARCHAR"/>
|
||||
<result column="longitude" property="longitude" jdbcType="DOUBLE"/>
|
||||
<result column="latitude" property="latitude" jdbcType="DOUBLE"/>
|
||||
<result column="status" property="status" jdbcType="TINYINT"/>
|
||||
<result column="name_tw" property="nameTw" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="net.irext.server.service.mapper.RemoteIndexMapper">
|
||||
<resultMap id="BaseResultMap" type="net.irext.server.service.model.RemoteIndex">
|
||||
<!--
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu May 04 12:06:44 CST 2017.
|
||||
-->
|
||||
<id column="id" property="id" jdbcType="INTEGER"/>
|
||||
<result column="category_id" property="categoryId" jdbcType="INTEGER"/>
|
||||
<result column="category_name" property="categoryName" jdbcType="VARCHAR"/>
|
||||
<result column="brand_id" property="brandId" jdbcType="INTEGER"/>
|
||||
<result column="brand_name" property="brandName" jdbcType="VARCHAR"/>
|
||||
<result column="city_code" property="cityCode" jdbcType="VARCHAR"/>
|
||||
<result column="city_name" property="cityName" jdbcType="VARCHAR"/>
|
||||
<result column="operator_id" property="operatorId" jdbcType="VARCHAR"/>
|
||||
<result column="operator_name" property="operatorName" jdbcType="VARCHAR"/>
|
||||
<result column="protocol" property="protocol" jdbcType="VARCHAR"/>
|
||||
<result column="remote" property="remote" jdbcType="VARCHAR"/>
|
||||
<result column="remote_map" property="remoteMap" jdbcType="VARCHAR"/>
|
||||
<result column="status" property="status" jdbcType="TINYINT"/>
|
||||
<result column="sub_cate" property="subCate" jdbcType="TINYINT"/>
|
||||
<result column="priority" property="priority" jdbcType="INTEGER"/>
|
||||
<result column="remote_number" property="remoteNumber" jdbcType="VARCHAR"/>
|
||||
<result column="operator_name_tw" property="operatorNameTw" jdbcType="VARCHAR"/>
|
||||
<result column="category_name_tw" property="categoryNameTw" jdbcType="VARCHAR"/>
|
||||
<result column="brand_name_tw" property="brandNameTw" jdbcType="VARCHAR"/>
|
||||
<result column="city_name_tw" property="cityNameTw" jdbcType="VARCHAR"/>
|
||||
<result column="binary_md5" property="binaryMd5" jdbcType="CHAR"/>
|
||||
<result column="contributor" property="contributor" jdbcType="VARCHAR"/>
|
||||
<result column="update_time" property="updateTime" jdbcType="CHAR"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="net.irext.server.service.mapper.StbOperatorMapper">
|
||||
<resultMap id="BaseResultMap" type="net.irext.server.service.model.StbOperator">
|
||||
<!--
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu May 04 12:06:44 CST 2017.
|
||||
-->
|
||||
<id column="id" property="id" jdbcType="INTEGER"/>
|
||||
<result column="operator_id" property="operatorId" jdbcType="VARCHAR"/>
|
||||
<result column="operator_name" property="operatorName" jdbcType="VARCHAR"/>
|
||||
<result column="city_code" property="cityCode" jdbcType="VARCHAR"/>
|
||||
<result column="city_name" property="cityName" jdbcType="VARCHAR"/>
|
||||
<result column="status" property="status" jdbcType="TINYINT"/>
|
||||
<result column="operator_name_tw" property="operatorNameTw" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user