Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-material
Overview
Overview
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
wxh
spring-boot-material
Commits
7e49db77
Commit
7e49db77
authored
Nov 07, 2019
by
mergen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
acdde426
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
+15
-1
pom.xml
+6
-0
src/main/java/com/orhon/smartcampus/material/MaterialApplication.java
+8
-0
src/main/resources/application.yml
+1
-1
No files found.
pom.xml
View file @
7e49db77
...
...
@@ -124,6 +124,12 @@
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<version>
2.0.0.RELEASE
</version>
</dependency>
</dependencies>
<dependencyManagement>
...
...
src/main/java/com/orhon/smartcampus/material/MaterialApplication.java
View file @
7e49db77
...
...
@@ -6,10 +6,12 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.client.loadbalancer.LoadBalanced
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.web.client.RestTemplate
;
@SpringBootApplication
@ComponentScan
({
"com.alibaba.fastjson.support.spring"
,
"com.orhon.smartcampus.material"
})
...
...
@@ -21,4 +23,10 @@ public class MaterialApplication {
SpringApplication
.
run
(
MaterialApplication
.
class
,
args
);
}
@LoadBalanced
@Bean
public
RestTemplate
restTemplate
()
{
return
new
RestTemplate
();
}
}
src/main/resources/application.yml
View file @
7e49db77
...
...
@@ -10,7 +10,7 @@ server:
spring
:
application
:
name
:
smartcampus-material
-112233
name
:
smartcampus-material
profiles
:
active
:
testenv
jackson
:
...
...
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