Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
hroToOA
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
private-group
hroToOA
Commits
e100eeb6
Commit
e100eeb6
authored
Mar 23, 2021
by
李志平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环境配置
parent
2ab5db2a
Pipeline
#4211
failed with stages
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
282 additions
and
177 deletions
+282
-177
pom.xml
pom.xml
+230
-139
Application.java
src/main/java/com/dianmi/hrotooa/Application.java
+14
-0
ActiontestController.java
...a/com/dianmi/hrotooa/controller/ActiontestController.java
+1
-1
bootstrap.yml
src/main/resources/bootstrap.yml
+37
-37
No files found.
pom.xml
View file @
e100eeb6
This diff is collapsed.
Click to expand it.
src/main/java/com/
example/springbootbemo/Springbootbemo
Application.java
→
src/main/java/com/
dianmi/hrotooa/
Application.java
View file @
e100eeb6
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
Springbootbemo
Application
{
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Springbootbemo
Application
.
class
,
args
);
SpringApplication
.
run
(
Application
.
class
,
args
);
}
}
src/main/java/com/
example/springbootbemo
/controller/ActiontestController.java
→
src/main/java/com/
dianmi/hrotooa
/controller/ActiontestController.java
View file @
e100eeb6
package
com
.
example
.
springbootbemo
.
controller
;
package
com
.
dianmi
.
hrotooa
.
controller
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/resources/bootstrap.yml
View file @
e100eeb6
#服务器配置
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
ext
ension-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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment