yang_shj
7 months ago
12 changed files with 29 additions and 183 deletions
@ -1,30 +1,21 @@ |
|||||||
package com.hnac.hzims.weather; |
package com.hnac.hzims.weather; |
||||||
|
|
||||||
import com.hnac.hzims.hzimsweather.HeWeatherInitialize; |
|
||||||
import com.hnac.hzims.hzimsweather.constants.WeatherConstant; |
import com.hnac.hzims.hzimsweather.constants.WeatherConstant; |
||||||
import org.mybatis.spring.annotation.MapperScan; |
import org.mybatis.spring.annotation.MapperScan; |
||||||
import org.springblade.core.cloud.feign.EnableBladeFeign; |
|
||||||
import org.springblade.core.launch.BladeApplication; |
import org.springblade.core.launch.BladeApplication; |
||||||
import org.springframework.boot.SpringApplication; |
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||||
import org.springframework.boot.builder.SpringApplicationBuilder; |
|
||||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
||||||
import org.springframework.cloud.client.SpringCloudApplication; |
import org.springframework.cloud.openfeign.EnableFeignClients; |
||||||
|
|
||||||
/** |
/** |
||||||
* @author hx |
* @author hx |
||||||
*/ |
*/ |
||||||
@EnableBladeFeign |
@SpringBootApplication(scanBasePackages = {"org.springblade", "com.hnac.*"}) |
||||||
@SpringCloudApplication |
@MapperScan(basePackages = {"com.hnac.hzinfo.**.mapper","com.hnac.hzims.**.mapper"}) |
||||||
@MapperScan("com.hnac.hzims.weather.**.mapper.**") |
@EnableFeignClients(basePackages = {"org.springblade", "com.hnac"}) |
||||||
public class WeatherApplication extends SpringBootServletInitializer { |
public class WeatherApplication extends SpringBootServletInitializer { |
||||||
|
|
||||||
public static void main(String[] args) { |
public static void main(String[] args) { |
||||||
BladeApplication.run(WeatherConstant.APP_NAME, WeatherApplication.class, args); |
BladeApplication.run(WeatherConstant.APP_NAME, WeatherApplication.class, args); |
||||||
} |
} |
||||||
|
|
||||||
@Override |
|
||||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { |
|
||||||
return BladeApplication.createSpringApplicationBuilder(builder, WeatherConstant.APP_NAME, WeatherApplication.class); |
|
||||||
} |
|
||||||
} |
} |
@ -1,10 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8200 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
spring: |
|
||||||
datasource: |
|
||||||
url: ${blade.datasource.prod.url} |
|
||||||
username: ${blade.datasource.prod.username} |
|
||||||
password: ${blade.datasource.prod.password} |
|
@ -1,50 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8300 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
spring: |
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
url: jdbc:mysql://175.6.40.67:5816/dev_hzims_weather?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
|
||||||
username: root |
|
||||||
password: 123 |
|
||||||
|
|
||||||
redis: |
|
||||||
##redis 单机环境配置 |
|
||||||
host: 192.168.1.68 |
|
||||||
port: 3577 |
|
||||||
password: 1qaz2WSX@redis |
|
||||||
database: 0 |
|
||||||
ssl: false |
|
||||||
|
|
||||||
#mybatis-plus配置 |
|
||||||
mybatis-plus: |
|
||||||
mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml |
|
||||||
#实体扫描,多个package用逗号或者分号分隔 |
|
||||||
typeAliasesPackage: com.hnac.hzims.**.entity |
|
||||||
|
|
||||||
xxl: |
|
||||||
job: |
|
||||||
accessToken: '' |
|
||||||
admin: |
|
||||||
addresses: http://192.168.1.68:7009/xxl-job-admin |
|
||||||
executor: |
|
||||||
appname: hzims-weather |
|
||||||
ip: 192.168.1.68 |
|
||||||
logpath: /data/applogs/xxl-job/jobhandler |
|
||||||
logretentiondays: -1 |
|
||||||
port: 28300 |
|
||||||
|
|
||||||
#swagger扫描路径配置 |
|
||||||
swagger: |
|
||||||
base-packages: |
|
||||||
- org.springbalde |
|
||||||
- com.hnac |
|
||||||
|
|
||||||
hzims: |
|
||||||
weather: |
|
||||||
public-id: HE2206121654341891 |
|
||||||
private-key: 0779937e923d4e46b3be9a08bf2e5d45 |
|
@ -1,11 +0,0 @@ |
|||||||
#mybatis-plus配置 |
|
||||||
mybatis-plus: |
|
||||||
mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml |
|
||||||
#实体扫描,多个package用逗号或者分号分隔 |
|
||||||
typeAliasesPackage: com.hnac.hzims.**.entity |
|
||||||
|
|
||||||
#swagger扫描路径配置 |
|
||||||
swagger: |
|
||||||
base-packages: |
|
||||||
- org.springbalde |
|
||||||
- com.hnac |
|
Loading…
Reference in new issue