Commit e100eeb6 authored by 李志平's avatar 李志平

环境配置

parent 2ab5db2a
Pipeline #4211 failed with stages
This diff is collapsed.
package com.example.springbootbemo;
package com.dianmi.hrotooa;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication
public class SpringbootbemoApplication {
public class Application {
public static void main(String[] args) {
SpringApplication.run(SpringbootbemoApplication.class, args);
SpringApplication.run(Application.class, args);
}
}
package com.example.springbootbemo.controller;
package com.dianmi.hrotooa.controller;
import org.springframework.web.bind.annotation.*;
......
#服务器配置
server:
port: 9000
#spring配置
spring:
application:
name: hro-to-oa
cloud:
nacos:
discovery:
server-addr: @nacos.addr@
namespace: @nacos.namespace@
config:
server-addr: @nacos.addr@
namespace: @nacos.namespace@
group: @nacos.group@
file-extension: yml
ext-config:
- data-id: shareconfig.yml
group: DEFAULT_GROUP
refresh: true
profiles:
active: @profiles.active@
datasource:
driver-class-name: com.mysql.jdbc.Driver
servlet:
multipart:
max-file-size: 40MB
max-request-size: 40MB
############################## mybatis 配置 ######################################
mybatis:
mapper-locations: classpath:daoMapper/*.xml
typeAliasesPackage: com.dianmi.domain.entity
configuration:
map-underscore-to-camel-case: true
#服务器配置
server:
port: 9000
#spring配置
spring:
application:
name: hro-to-oa
cloud:
nacos:
discovery:
server-addr: @nacos.addr@
namespace: @nacos.namespace@
config:
server-addr: @nacos.addr@
namespace: @nacos.namespace@
group: @nacos.group@
file-extension: yml
extension-configs:
- data-id: shareconfig.yml
group: DEFAULT_GROUP
refresh: true
profiles:
active: @profiles.active@
datasource:
driver-class-name: com.mysql.jdbc.Driver
servlet:
multipart:
max-file-size: 40MB
max-request-size: 40MB
############################## mybatis 配置 ######################################
mybatis:
mapper-locations: classpath:daoMapper/*.xml
typeAliasesPackage: com.dianmi.domain.entity
configuration:
map-underscore-to-camel-case: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment