하루하나
close
프로필 배경
프로필 로고

하루하나

  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
[SpringBoot] spring cloud gateway - 1

[SpringBoot] spring cloud gateway - 1

@SpringBootApplication @RestController public class Scg1Application { @GetMapping("/user/test") public String user() { return "user"; } public static void main(String[] args) { SpringApplication.run(Scg1Application.class, args); } }​ spring: cloud: gateway: routes: - id: user-api uri: http://localhost:8081/ predicates: - Path=/user/** 스프링부트에 scg(spring cloud gateway)를 이용해서 gateway구성을 해보자 springb..

  • format_list_bulleted Programming/Springboot
  • · 2023. 7. 15.
  • textsms

[jRebel] springboot 2.4.0 error

2020-11-23 22:56:58 JRebel: ERROR Class 'org.springframework.web.servlet.handler.AbstractHandlerMethodMapping' could not be processed by org.zeroturnaround.javarebel.integration.spring.cbp.AbstractHandlerMethodMappingCBP@jdk.internal.loader.ClassLoaders$AppClassLoader@2e5c649: org.zeroturnaround.bundled.javassist.CannotCompileException: [source error] getMappings() not found in org.springframewo..

  • format_list_bulleted Programming/Java
  • · 2020. 11. 23.
  • textsms

[springboot] @value null in constructor / @PostConstruct

@Value("${mail.port}") private int mailPort; @Value("${mail.id}") private String mailId; public Class() { System.out.println(mailPort); // null } @PostConstruct public void init() { System.out.println(mailPort); // 8080 } spring에서 위와같이 vlaue값을 생성자에서 쓰려고 하면 null 값이 나온다생성자 실행후에 각각의 값에 properties값들이 주입되기때문인데.. 이럴경우 @PostConstruct를 이용해서 초기화하면 주입된값을 정상적으로 사용할수 있다.

  • format_list_bulleted 카테고리 없음
  • · 2020. 4. 4.
  • textsms

[springboot] junit4 + controller test [mockMvc]

gradle 기본셋팅 후 webcontroller 생성@RestController public class WebController { @GetMapping public String test() { return "hello"; } } test code 작성import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.s..

  • format_list_bulleted Programming/Springboot
  • · 2020. 3. 27.
  • textsms

[springboot] @autowired 안에서 @value로 호출한 값 못 읽을때

Service를 하나 만들었고, Service 생성자 안에서 값을 초기화 해주는 로직을 만들고 있었다. 각각 환경마다 다르게 셋팅해야하는 값이라 application.properties에 값을 넣어주고 불러와서 사용하고 있어다 .예제를 보자면 이런식 @Value("{test.title}") String title; private OtherService otherService; public WebService(OtherService otherService) { this.otherService = otherService; if (title.equals("dev")) { System.out.println("dev setting"); } else { System.out.println("other setting"..

  • format_list_bulleted Programming/Springboot
  • · 2019. 3. 13.
  • textsms

ng-file-upload multiple file upload / spring controller

ng-file-upload 라이브러리를 이용해서 파일을 여러개와 다른 컨텐츠들을 보내고 싶을때, 1cs html에 ngf-select를 선언해서 파일을 특정 변수에 담는다. 12345var vm = this; vm.onFileSelect2 = function($files){ vm.file = $files;}Colored by Color Scriptercs ajax 부분에서 arrayKey에 '' 값을 선언해 준다. 12345678910111213 vm.dataFrm = { name:'test', age:10 } Upload.upload({ url: 'fileupload url', fields: vm.dataFrm, // send variable file: vm.file, arrayKey: '' //

  • format_list_bulleted Programming/AngularJS
  • · 2017. 7. 3.
  • textsms
  • navigate_before
  • 1
  • 2
  • navigate_next
반응형
공지사항
전체 카테고리
  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
최근 글
인기 글
최근 댓글
태그
  • #JPA
  • #springboot
  • #sts
  • #Vue
  • #error
  • #MySQL
  • #javascript
  • #GIT
  • #css
  • #AngularJS
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바