blackpepper
@blackpepper
Reviews Written
8
Average Rating
5.0
Posts
Q&A
๋ถํธ์คํธ๋ฉ ํ์ผ์ด ์กด์ฌํ์ง ์์ต๋๋ค.
์ต์ ๋ฌธ์ ํ์ธํ๋๊น import๊ฐ ๋ฐ๋์๋ค์.import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap/dist/js/bootstrap.bundle.min.js'
- 0
- 2
- 362
Q&A
prometheus image ์คํ ์ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.
prometheus.yml ํ์ผ ์ ์ฉ ์ ํ ์ํ๋ก ์คํํ๊ณ , ์ปจํ ์ด๋์ ์ง์ ๋ค์ด๊ฐ์ prometheus.yml ํ์ผ ์์ ํด์ ์ฌ์คํํ๊ณ ์ ์ฉํ์ต๋๋ค..๊ทธ๋ฆฌ๊ณ targets: ['apigateway-service:8000']์์ targets: ['host.docker.internal:8000']์ผ๋ก ๋ณ๊ฒฝํด์ ์๋๋์ด์.
- 0
- 2
- 865
Q&A
์คํ๋ง ์ํ๋ฆฌํฐ ์ต์ ๋ฒ์ ์ฝ๋ ์์๊น์?
์น์ 4. Users Microservice โ Spring Security ์ฝ๋ ์ ๋๋ค.@Configuration @EnableWebSecurity public class WebSecurity { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf(csrf->csrf.disable()); http.authorizeHttpRequests(request->{ request.requestMatchers(antMatcher("/users/**")).permitAll(); request.requestMatchers(antMatcher("/h2-console/**")).permitAll(); }); http.headers(headers->headers.frameOptions(frameOptions->frameOptions.disable())); return http.build(); } }
- 0
- 7
- 2.5K
Q&A
consumer๊ฐ ์๋ํ์ง ์์ต๋๋ค
https://spring.io/projects/spring-kafka/ SpringBoot 3.2 ๋ฒ์ ์ Kafka 3.6 ๋ฒ์ ์ ์ฌ์ฉํด์ผํ๋ค๊ณ ํด์ ๋ณ๊ฒฝํ์ต๋๋ค.MariaDB๋ 11.2.2 ๋ฒ์ , confluent 7.5.2 ์ฌ์ฉํ์ต๋๋ค.confluent 7.5* ๋ฒ์ ์ฌ์ฉ ์ ๋ฐ์ํ๋ ์๋ฌError: Could not find or load main class org.apache.kafka.connect.cli.ConnectDistributed Caused by: java.lang.ClassNotFoundException: org.apache.kafka.connect.cli.ConnectDistributedbin\windows\kafka-run-class.bat ์ฝ๋ ๋ณ๊ฒฝ๊ธฐ์กด์ฝ๋rem Classpath addition for release for %%i in ("%BASE_DIR%\libs\*") do ( call :concat "%%i" ) rem Classpath addition for core for %%i in ("%BASE_DIR%\core\build\libs\kafka_%SCALA_BINARY_VERSION%*.jar") do ( call :concat "%%i" )๋ณ๊ฒฝ์ฝ๋rem Classpath addition for release for %%i in ("%BASE_DIR%\libs\*") do ( call :concat "%%i" ) rem Classpath addition for LSB style path if exist %BASE_DIR%\share\java\kafka\* ( call:concat %BASE_DIR%\share\java\kafka\* ) rem Classpath addition for core for %%i in ("%BASE_DIR%\core\build\libs\kafka_%SCALA_BINARY_VERSION%*.jar") do ( call :concat "%%i" ) confluent ์คํ ์ ๋ฐ์ํ ์๋ฌlog4j:ERROR Could not read configuration file from URL [file:C:/work/confluent-7.5.2/config/connect-log4j.properties]. java.io.FileNotFoundException: C:\work\confluent-7.5.2\config\connect-log4j.properties (์ง์ ๋ ๊ฒฝ๋ก๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค)bin\windows\connect-distributed.bat ์ฝ๋ ๋ณ๊ฒฝ๊ธฐ์กด ์ฝ๋rem Log4j settings IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] ( set KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:%BASE_DIR%/config/connect-log4j.properties )๋ณ๊ฒฝ ์ฝ๋rem Log4j settings IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] ( set KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:%BASE_DIR%/etc/kafka/connect-log4j.properties ) ํฌ์คํธ๋งจ์์ POST๋ก ์ ์กํ ๋"connection.url":"jdbc:mysql://localhost:3306/mydb" "table.whitelist":"users"์ด ๋ถ๋ถ์์ mysql์ mariadb๋ก, users๋ฅผ mydb.users๋ก ๋ณ๊ฒฝํ์ฌ ์ฌ์ฉํ์ต๋๋ค.
- 0
- 2
- 648
Q&A
์คํ๋ง ์ํ๋ฆฌํฐ ์ต์ ๋ฒ์ ์ฝ๋ ์์๊น์?
https://www.inflearn.com/questions/1020758/springboot-3%EC%A0%90%EB%8C%80-%EB%B2%84%EC%A0%84-spring-security-%EC%84%A4%EC%A0%95์ฌ๊ธฐ ์ฝ๋ ์ฐธ๊ณ ํด์ ์์ฑํ์ต๋๋ค.์น์ 6 ๊ธฐ์ค์ผ๋ก ๋๋จธ์ง ์ฝ๋๋ ๋ณ์๋ช ์ ๋๋ง ์์ ํ๊ณ , WebSecurity์ฝ๋๋ ์ด๋ ๊ฒ ๋ฐ๊ฟ์ ์ฌ์ฉํ์ด์.@Configuration @EnableWebSecurity @RequiredArgsConstructor public class WebSecurity { private final UserService userService; private final Environment environment; private final AuthenticationConfiguration authenticationConfiguration; private final AuthenticationManager authenticationManager; @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf(AbstractHttpConfigurer::disable) .authorizeHttpRequests(request ->{ request.requestMatchers(antMatcher("/**")).permitAll(); }) .addFilter(getAuthenticationFilter(authenticationConfiguration)); http.headers().frameOptions().disable(); //H2 Console ์ค์ return http.build(); } private AuthenticationFilter getAuthenticationFilter(AuthenticationConfiguration authenticationConfiguration) throws Exception { AuthenticationFilter authenticationFilter = new AuthenticationFilter(authenticationManager, userService, environment); return authenticationFilter; } }
- 0
- 7
- 2.5K
Q&A
BeanCreationException ์ง๋ฌธ๋๋ฆฝ๋๋ค.
๊ฐ์ฌํฉ๋๋ค.. ํด๊ฒฐํ์ต๋๋ค. @Entity๋ฅผ ํด์ผํ๋๋ฐ @Embeddable๋ก ์ ๋ ฅ๋๊ฒ ๋ฌธ์ ์๋ค์! ๊ทธ๋ฆฌ๊ณ ์ฒซ๋ฒ์งธ ์ฝ๋๋ ์์ ์๋ฃ PDF์ ์๋ ์ฝ๋๋ฅผ ๊ทธ๋๋ก ์ฌ์ฉํ๊ฑฐ์์.. ํ์ธ ๋ถํ๋๋ฆฝ๋๋ค.
- 0
- 2
- 364
Q&A
Cause: invalid source release: 11
https://blog.naver.com/PostView.naver?blogId=tofhadl529&logNo=222374497101&from=search&redirect=Log&widgetTypeCall=true&directAccess=false ์ฌ๊ธฐ ์๋๋ฐฉ๋ฒ์ผ๋ก ๋ฐ๋ผํ๊ณ ํด๊ฒฐํ์ด์!
- 1
- 1
- 649




