We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 404abdb commit 1ede692Copy full SHA for 1ede692
1 file changed
src/main/java/br/com/developers/config/ApplicationConfig.java
@@ -6,6 +6,7 @@
6
import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
7
import org.springframework.context.annotation.Bean;
8
import org.springframework.context.annotation.Configuration;
9
+import org.springframework.web.client.RestTemplate;
10
import br.com.developers.domain.model.Role;
11
import br.com.developers.domain.model.RoleName;
12
import br.com.developers.domain.repository.RoleRepository;
@@ -17,6 +18,12 @@ public class ApplicationConfig {
17
18
19
private RoleRepository roleRepository;
20
21
+ @Bean
22
+ public RestTemplate restTemplate() {
23
+ return new RestTemplate();
24
+ }
25
+
26
27
@Bean
28
public void configVelocity() {
29
Velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
0 commit comments