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.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication @SpringBootApplication
public class SpringbootbemoApplication { public class Application {
public static void main(String[] args) { 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.*; import org.springframework.web.bind.annotation.*;
......
#服务器配置 #服务器配置
server: server:
port: 9000 port: 9000
#spring配置 #spring配置
spring: spring:
application: application:
name: hro-to-oa name: hro-to-oa
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: @nacos.addr@ server-addr: @nacos.addr@
namespace: @nacos.namespace@ namespace: @nacos.namespace@
config: config:
server-addr: @nacos.addr@ server-addr: @nacos.addr@
namespace: @nacos.namespace@ namespace: @nacos.namespace@
group: @nacos.group@ group: @nacos.group@
file-extension: yml file-extension: yml
ext-config: extension-configs:
- data-id: shareconfig.yml - data-id: shareconfig.yml
group: DEFAULT_GROUP group: DEFAULT_GROUP
refresh: true refresh: true
profiles: profiles:
active: @profiles.active@ active: @profiles.active@
datasource: datasource:
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
servlet: servlet:
multipart: multipart:
max-file-size: 40MB max-file-size: 40MB
max-request-size: 40MB max-request-size: 40MB
############################## mybatis 配置 ###################################### ############################## mybatis 配置 ######################################
mybatis: mybatis:
mapper-locations: classpath:daoMapper/*.xml mapper-locations: classpath:daoMapper/*.xml
typeAliasesPackage: com.dianmi.domain.entity typeAliasesPackage: com.dianmi.domain.entity
configuration: configuration:
map-underscore-to-camel-case: true 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