This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## docker-compose -f ./dc-09-account-history.yml up -d | |
version: "3.7" | |
services: | |
############################################################## | |
# INFRASTRUCTURE SERVICES | |
################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
port: 8080 | |
info: | |
app: | |
name: Account Profile Service | |
description: Provides access to account profile information | |
version: 1.0.0 | |
spring: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
application: | |
name: ACCOUNT-PROFILE-SERVICE | |
cloud: | |
config: | |
fail-fast: true | |
retry: | |
max-attempts: 10 | |
initial-interval: 1500 | |
multiplier: 1.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkmicroservices.ri.spring.account.profile.controller; | |
import com.thinkmicroservices.ri.spring.account.profile.model.ProfileImage; | |
import com.thinkmicroservices.ri.spring.account.profile.service.ProfileService; | |
import io.swagger.annotations.ApiImplicitParam; | |
import io.swagger.annotations.ApiImplicitParams; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package com.thinkmicroservices.ri.spring.account.profile.controller; | |
import com.thinkmicroservices.ri.spring.account.profile.model.Profile; | |
import com.thinkmicroservices.ri.spring.account.profile.service.ProfileDeleteException; | |
import com.thinkmicroservices.ri.spring.account.profile.service.ProfileService; | |
import com.thinkmicroservices.ri.spring.account.profile.service.ProfileUpdateException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkmicroservices.ri.spring.account.profile.service; | |
import com.thinkmicroservices.ri.spring.account.profile.messaging.ProfileQueueManager; | |
import com.thinkmicroservices.ri.spring.account.profile.messaging.events.ProfileCreatedEvent; | |
import com.thinkmicroservices.ri.spring.account.profile.messaging.events.ProfileImageCreatedEvent; | |
import com.thinkmicroservices.ri.spring.account.profile.messaging.events.ProfileImageUpdatedEvent; | |
import com.thinkmicroservices.ri.spring.account.profile.messaging.events.ProfileUpdatedEvent; | |
import com.thinkmicroservices.ri.spring.account.profile.model.Profile; | |
import com.thinkmicroservices.ri.spring.account.profile.model.ProfileImage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkmicroservices.ri.spring.account.profile.messaging; | |
import com.thinkmicroservices.ri.spring.account.profile.messaging.events.AccountRegisteredEvent; | |
import com.thinkmicroservices.ri.spring.account.profile.model.Profile; | |
import com.thinkmicroservices.ri.spring.account.profile.service.ProfileCreateException; | |
import com.thinkmicroservices.ri.spring.account.profile.service.ProfileService; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.cloud.stream.annotation.EnableBinding; | |
import org.springframework.cloud.stream.annotation.StreamListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkmicroservices.ri.spring.account.profile.repository; | |
import com.thinkmicroservices.ri.spring.account.profile.model.ProfileImage; | |
import java.util.Optional; | |
import org.springframework.data.mongodb.repository.MongoRepository; | |
/** | |
* | |
* @author cwoodward | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkmicroservices.ri.spring.account.profile.repository; | |
import com.thinkmicroservices.ri.spring.account.profile.model.Profile; | |
import java.util.Optional; | |
import org.springframework.data.domain.Page; | |
import org.springframework.data.domain.Pageable; | |
import org.springframework.data.mongodb.repository.MongoRepository; | |
import org.springframework.data.mongodb.repository.Query; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.1.8.RELEASE</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> |
NewerOlder