初始化

This commit is contained in:
谢洪龙
2017-08-23 12:24:08 +08:00
commit cfd92a4384
156 changed files with 3026 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+32
View File
@@ -0,0 +1,32 @@
c3p0.driverClassName=com.mysql.jdbc.Driver
c3p0.url=jdbc\:mysql\://localhost\:3306/myfishdb?characterEncoding\=UTF-8
c3p0.username=ifish
c3p0.password=ifish7pwd
#c3p0.username=root
#c3p0.password=123456
c3p0.autoCommitOnClose=true
c3p0.initialPoolSize=50
c3p0.minPoolSize=50
c3p0.maxPoolSize=100
c3p0.acquireIncrement=3
c3p0.checkoutTimeout=5000
c3p0.maxIdleTime=7200
c3p0.idleConnectionTestPeriod=18000
#c3p0.maxIdleTimeExcessConnections=1800
#c3p0.automaticTestTable=C3P0TestTable
#c3p0.testConnectionOnCheckout=false
#c3p0.testConnectionOnCheckin=false
#org.hibernate.dialect.MySQLInnoDBDialect
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.show_sql=false
hibernate.format_sql=true
hibernate.hbm2ddl.auto=false
hibernate.jdbc.batch_size=50
hibernate.query.substitutions=true 1,false 0
hibernate.cache.use_second_level_cache=false
hibernate.cache.use_query_cache=false
hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<!-- 尽量别用绝对路径,如果带参数不同容器路径解释可能不同 -->
<property name="LOG_HOME" value="/logs" />
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{50} %msg%n</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_HOME}/quartzPro/localhost.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>${LOG_HOME}/quartzPro/%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} 【%-5level】 【%logger{50}】 %msg%n</pattern>
<charset>UTF-8</charset>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
</appender>
<!-- 将级别为“info”及大于“info”的日志信息传递给root处理,本身并不打印 -->
<root level="INFO">
<!-- root将级别为“INFO”及大于“INFO”的日志信息交给已经配置好的名为“Console”的appender处理,“Console”appender将信息打印到Console -->
<appender-ref ref="file" />
<!-- 标识这个appender将会添加到这个logger -->
<!-- <appender-ref ref="File" /> -->
</root>
</configuration>
+16
View File
@@ -0,0 +1,16 @@
#\u6b63\u5f0f\u73af\u5883\u6781\u5149AppKey
AppKeyFormal=123
#\u6b63\u5f0f\u73af\u5883\u6781\u5149Master Secret
MasterSecretFormal=123
#\u6d4b\u8bd5\u73af\u5883\u6781\u5149AppKey
AppKey=6e5e9d757570859b3f274bb8
#\u6d4b\u8bd5\u73af\u5883\u6781\u5149Master Secret
MasterSecret=4f759a0609dcd9d2edb06125
#\u672c\u5730
#link_img_head=http://192.168.61.128:81/
#\u6d4b\u8bd5\u73af\u5883
link_img_head=http://139.196.24.156:83/
#\u6b63\u5f0f\u73af\u5883
#link_img_head=https://app.ifish7.com/
#\u56fe\u7247\u683c\u5f0f\u9a8c\u8bc1
check_style=GIF,PNG,BMP,JPG,JPEG
+74
View File
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd"
default-lazy-init="true">
<!-- 启动触发器的配置开始 -->
<bean name="startQuertz" lazy-init="false" autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="myJobTrigger" />
</list>
</property>
<property name="quartzProperties">
<props>
<prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
</props>
</property>
</bean>
<!-- 启动触发器的配置结束 -->
<!-- quartz-2.x的配置 -->
<bean id="myJobTrigger"
class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail">
<ref bean="myJobDetail" />
</property>
<property name="cronExpression">
<!--每天10点开始推送 -->
<value>0 0 10 * * ?</value>
</property>
</bean>
<!-- 调度的配置结束 -->
<!-- job的配置开始 -->
<bean id="myJobDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="myJob" />
</property>
<property name="targetMethod">
<value>pushRemind</value>
</property>
</bean>
<!-- job的配置结束 -->
<!-- 工作的bean -->
<bean id="myJob" class=" com.ifish.job.job" />
<!-- 注册识别注解 -->
<context:annotation-config />
<!-- 导入外部的properties文件-->
<context:property-placeholder location="classpath*:jPpush.properties" ignore-unresolvable="true"/>
<!-- 极光推送 -->
<bean id="jPushNotification2" class="com.ifish.jpush.JPushNotification">
<constructor-arg index="0">
<!-- appKey -->
<value>${jpush.ios.appKey}</value>
</constructor-arg>
<constructor-arg index="1">
<!-- secret -->
<value>${jpush.ios.secret}</value>
</constructor-arg>
<constructor-arg index="2">
<!-- production -->
<value>${jpush.ios.productionMode}</value>
</constructor-arg>
</bean>
</beans>