[Java, Spring] Restful API에 버전관리를 추가해보자
API서비스가 복잡하게 증가하다보면 버전관리 문제는 피할수가 없다. 나중에 생각할게 아니라 규칙을 정해 미리 적용한다면, 구웃. 버전 명명 규칙을 굳이 정하자면 아래와 같을 수 있고 /api/v3/greetings // 서비스 수준 /api/v3/greetings/v3.1/hello //...
황트루치
API서비스가 복잡하게 증가하다보면 버전관리 문제는 피할수가 없다. 나중에 생각할게 아니라 규칙을 정해 미리 적용한다면, 구웃. 버전 명명 규칙을 굳이 정하자면 아래와 같을 수 있고 /api/v3/greetings // 서비스 수준 /api/v3/greetings/v3.1/hello //...
spring.security.user.name=user spring.security.user.password=1234 package com.htrucci.bootsecurity; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication public class BootsecurityApplication { public static void main(String[] args) { SpringApplication.run(BootsecurityApplication.class, args); } } @RestController class...
MAC RabbitMq 설치, springboot HelloWorld 예제 http://www.rabbitmq.com/install-standalone-mac.html brew설치되어 있다고 가정하고 터미널에서 아래 명령어 실행 [simterm] $ brew install rabbitmq …..설치완료 후 $ cd /usr/local/sbin $ ./rabbitmq-server 구동완료 [/simterm] spring.rabbitmq.host=localhost spring.rabbitmq.port=5672...
SpringBoot + Junit 예제 import static org.assertj.core.api.Assertions.assertThat; @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class BootrestApplicationTests { @Autowired private TestRestTemplate restTemplate; @Test public void testSpringBootApp() throws JsonProcessingException, IOException{ String body = restTemplate.getForObject(“/”,...
https://github.com/wso2/msf4j WSO2 마이크로 서비스 프레임워크 (MSF4J) WSO2 Microservices Framework for Java (MSF4J)는 마이크로 서비스를 개발 및 실행하기 위한 경량의 고성능 프레임 워크입니다. WSO2 MSF4J는 최고 성능의 경량 Java 마이크로 서비스...
[Intellij] Can’t use Subversion command line client: svn The path to the Subversion executable is probably wrong. svn패키지를 간편하게 설치하기 위해 Homebrew 설치 https://brew.sh/ 프롬프트에 아래 누름 $ /usr/bin/ruby -e...
jupyter notebook에서 모델학습을 시키다 페이지 상태 변경이 일어나면 output에서 더 이상 학습진행 상황을 못볼수가 있다. 아래와 같이 로깅 콜백을 걸어두면 매 epoch마다 파일 로깅을 진행하여, 브라우저를 닫아버린 뒤에도 학습 상황을...
스터디하면서 진행한 내용을 아래 목차대로 포스팅 해보겠습니다. 케라스 설치 및 환경설정하기 컨셉 정의 학습 데이터 수집, 전처리, 분류 케라스 학습 코드 작성 학습 및 최적화 과정 CoreML 모델 뽑기 IOS...
String Array Blank Initialize. 간단하지만, String 배열 초기화시 Arrays.fill 함수를 이용하기. String[] url = new String[10]; Arrays.fill(url, “”);
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource []: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘basicErrorController’ method requestMapping 별도로...
More
최근 댓글