전체 글(135)
-
[Errors] org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
io.springfox springfox-swagger-ui 2.9.2 io.springfox springfox-swagger2 2.9.2 pom.xml @Configuration @EnableSwagger2 public class AppConfig{ @Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2).consumes(getConsumeContentTypes()).produces(getProduceContentTypes()) .apiInfo(getApiInfo()).select() .apis(RequestHandlerSelectors.basePackage("com.diquest.hanabank.controller")) .p..
2022.03.24 -
[설정] docker 에 redis 설지
docker pull redis redis 이미지를 받아온다. redis 이미지를 잘 받아왔고, 이제 컨테이너를 만들어보자 docker run -p 로컬port:도커port --name 생성할_컨테이너명 -d 이미지명 docker run -p 6379:6379 --name my_redis -d redis 잘 생성이 되었다.
2022.03.22 -
[Errors] Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration] from ClassLoader
https://exerror.com/failed-to-introspect-class-org-springframework-security-config-annotation-web-configuration-websecurityconfiguration/ [Solved] Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration] To Solve Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration] Erro..
2022.03.21 -
[설정] docker 컨테이너 만든 후 로컬포트 -> 도커포트 연결
도커에서 mariadb 이미지를 pull 하고 난뒤, 컨테이너를 만들었다. 도커포트는 3306으로 열려 있었지만, 로컬포트는 열려있지 않았다. 그래서 docker compose를 이용하여 로컬 포트:도커포트 를 연결 해주었다. version: "3" services: local-db: image: mariadb:latest container_name: mariadb_springboot restart: always ports: - 3306:3306 environment: MARIADB_ROOT_PASSWORD: 1234 TZ: Asia/Seoul volumes: - ./db/mysql/data:/var/lib/mariadb - ./db/mysql/init:/docker-entrypoint-initdb.d ..
2022.03.17 -
[Spring Boot] MySQL 연동 (docker)
현재 나는 도커에 mysql 컨테이너를 설치 하고 포트도 기존 mysql과 동일한 포트(3306)으로 해놨고, Mysql(docker) - Spring Boot을 연동 하려 한다. 현재 회사에서는 Spring Boot를 쓰지만 mybatis를 사용한다.....(부트 쓰는데 mybatis fksl......) server.port=8080 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/데이터베이스명?serverTimezone=UTC&characterEncoding=UTF-8 spring.datasource.username=계정 spring.datasourc..
2022.03.13 -
[Errors] H2 Hibernate 관련에러 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource
spring: h2: console: enabled: true datasource: url: jdbc:h2:mem:testdb driver-class-name: org.h2.Driver username: sa password: jpa: database-platform: org.hibernate.dialect.H2Dialect hibernate: ddl-auto: create-drop properties: hibernate: format_sql: true show_sql: true defer-datasource-initialization: true jwt: header: Authorization secret: c2lsdmVybmluZS10ZWNoLXNwcmluZy1ib290LWp3dC10dXRvcmlhbC..
2022.03.12