묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
MEMBER테이블에 TEAM_ID컬럼이 생기는 이유
일대다 단방향 연관관계에서,@Entitypublic class Member {@Id @GeneratedValue@Column(name = "MEMBER_ID")private Long id;@Column(name = "USERNAME")private String name;... getter and setter}@Entitypublic class Team {@Id @GeneratedValue@Column(name = "TEAM_ID")private Long id;private String name;@OneToMany@JoinColumn(name = "TEAM_ID")private List<Member> members = new ArrayList<>(); ... getter and setter}Member member = new Member();member.setName("member1");em.persist(member);Team team = new Team();team.setName("teamA");team.getMembers().add(member);em.persist(team); 1-1. @OneToMany @JoinColumn(name = "TEAM_ID") private List<Member> members = new ArrayList<>();를 통해 MEMBER테이블에 TEAM_ID컬럼이 생기는거 같은데, 다른 여러 테이블도 있다고 가정했을때 어떤 이유로 MEMBER테이블에 TEAM_ID컬럼이 생성되는것인가요? @JoinColumn(name = "TEAM_ID")만 보고 MEMBER테이블인지 어떻게 아는것인가요..? List<Member> members 에서 Member라고 지정해줬기때문에 MEMBER테이블에 TEAM_ID컬럼이 생기는것인가요? 1-2 @OneToMany와 @JoinColumn을 통해 일대다 단방향 연관관계나 일대다 양방향 연관관계를 하게되면 무조건 다쪽 테이블에 외래키 컬럼이 추가되는건가요??
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
libs가 없습니다... ㅠㅠ
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]hello-spring파일까지 이동한 후 gradlew.bat을 입력해서 실행했는데요 BUILD SUCCESSFUL이라고 떴습니다. 그 후 cd build해서 들어간 후 dir을 입력하니까 libs라는 폴더는 없네요... 이유가 뭘까요 ㅠㅠ께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. 1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG) 질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) [질문 내용]hello-spring파일까지 이동한 후 gradlew.bat을 입력해서 실행했는데요 BUILD SUCCESSFUL이라고 떴습니다. 그 후 cd build해서 들어간 후 dir을 입력하니까 libs라는 폴더는 없네요... 이유가 뭘까요 ㅠㅠ
-
해결됨스프링부트로 직접 만들면서 배우는 대규모 시스템 설계 - 게시판
CommentServiceTest에서 테스트 오류가 나요.
학습 관련 질문을 최대한 상세히 남겨주세요!고민 과정도 같이 나열해주셔도 좋습니다.먼저 유사한 질문이 있었는지 검색해보세요.인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. [문의사항]강사님의 코드 그대로 따라서 하나하나 작성하고, 모든 부분의 설정을 똑같이 했습니다. Comment 테스트 중에 <삭제할 댓글이 자식 있으면, 삭제 표시만 한다.> 는 성공이 되었습니다.그러나 <하위 댓글이 삭제되고, 삭제되지 않은 부모면, 하위 댓글만 삭제한다.> 부분의 테스트를 그대로 따라했는데, mockito.exceptions.misusing.UnnecssaryStubbingException 오류가 납니다.강의 자료로 올려주신 소스코드를 그대로 복사하여 붙여넣기 해도 같은 오류가 납니다. 소스코드와 에러메세지 작성드리며, 같은 환경에서 똑같은 소스코드를 작성했는데 어떻게 오류가 나는지 궁금합니다. 해결 부탁드립니다 ㅠㅠㅠpackage kuke.board.comment.service; import kuke.board.comment.entity.Comment; import kuke.board.comment.repository.CommentRepository; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import java.util.Optional; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.BDDMockito.given; import static org.mockito.Mockito.*; @ExtendWith(MockitoExtension.class) class CommentServiceTest { @InjectMocks CommentService commentService; @Mock CommentRepository commentRepository; @Test @DisplayName("삭제할 댓글이 자식 있으면, 삭제 표시만 한다.") void deleteShouldMarkDeletedIfHasChildren() { // given Long articleId = 1L; Long commentId = 2L; Comment comment = createComment(articleId, commentId); given(commentRepository.findById(commentId)) .willReturn(Optional.of(comment)); given(commentRepository.countBy(articleId, commentId, 2L)).willReturn(2L); // when commentService.delete(commentId); // then verify(comment).delete(); } @Test @DisplayName("하위 댓글이 삭제되고, 삭제되지 않은 부모면, 하위 댓글만 삭제한다.") void deleteShouldDeleteChildOnlyIfNotDeletedParent() { // given Long articleId = 1L; Long commentId = 2L; Long parentCommentId = 1L; Comment comment = createComment(articleId, commentId, parentCommentId); given(comment.isRoot()).willReturn(false); Comment parentComment = mock(Comment.class); given(parentComment.getDeleted()).willReturn(false); given(commentRepository.findById(commentId)) .willReturn(Optional.of(comment)); given(commentRepository.countBy(articleId, commentId, 2L)).willReturn(1L); given(commentRepository.findById(parentCommentId)) .willReturn(Optional.of(parentComment)); // when commentService.delete(commentId); // then verify(commentRepository).delete(comment); verify(commentRepository, never()).delete(parentComment); } private Comment createComment(Long articleId, Long commentId) { Comment comment = mock(Comment.class); given(comment.getArticleId()).willReturn(articleId); given(comment.getCommentId()).willReturn(commentId); return comment; } private Comment createComment(Long articleId, Long commentId, Long parentCommentId) { Comment comment = createComment(articleId, commentId); given(comment.getParentCommentId()).willReturn(parentCommentId); return comment; } }
-
미해결
깃허브 폴더 삭제
안녕하세요 처음 깃허브에 가입하고 레파지토리라는 걸 만들었는데 폴더 삭제를 어떻게 하나요?ㅠㅠㅠ 터미널에 가서 git rm -rf [파일명] 을 입력하라고 구글링해봤는데 C:\Users\ > 이런식으로 떠서 C:\Users\ > git rm -rf [파일명] 라고 입력했더니 'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는배치 파일이 아닙니다. 이렇게 나오는데 혹시 깃허브에서 폴더를 삭제할려면 무언가 새로운것을 설치해야하나요 답변 부탁드립니다 ㅠㅠ
-
미해결바닥부터 시작하는 STM32 드론 개발의 모든 것
ICM20602 자이로센서 출력주기, 차단주파수 관련 문의
자이로센서 출력 주기와 LPF 차단주파수를 설정하기 위해 Register 26번을 설정할 때, FCHOICE_B는 어떻게 설정할 수 있는 건가요??Register26번에는 관련 필드가 없는 것 같아 여쭤봅니다.
-
해결됨독하게 시작하는 C 프로그래밍
scanf_s 함수 질문있습니다!
scanf_s("%4c", szBuffer, _countof(szBuffer));이부분 예제에서는 왜 &szBuffer 이렇게 참조형식으로 넘겨주지 않은건가요 ??
-
해결됨그림으로 쉽게 배우는 운영체제
수업 노트 설명에 대해 이해가 안가는 부분이 있어 질문 드립니다.
안녕하세요 수업노트에 execpl() 함수가 실행되면 exit()함수가 실행되지 않는다고 하셨는데요. execlp() 함수의 반환값과 상관없이 13번째 줄이 실행되야 하는게 아닌가 해서요. 성공하면 exit()를 왜 영영 실행하지 않는 것인지 궁금합니다. 예제 코드에서 상태에서 exit() 함수가 만약 실행되지 않는다면 부모 클래스는 계속 wait 상태가 되어 다른 자식 프로세스에서 exit()가 나올 때까지 기다리는거고 예제의 자식 프로세스는 exit()가 되지 않고 있으니 좀비 프로세스가 되는건가요?
-
미해결비전공자도 이해할 수 있는 Nginx 입문/실전
NextJS 15버전의 경우 build 후 폴더가 다른 것 같습니다
NextJS 15버전에서 build를 하면 .next라는 폴더가 생기고 server폴더, static 폴더를 포함한 다양한 파일들이 나타납니다.그런데 html 파일이 없는데 어떻게 nginx 세팅을 해야하는지 잘 모르겠습니다...!
-
미해결
How Nurses Play a Key Role in Palliative Care
How Nurses Play a Key Role in Palliative CareNurses play an essential role in palliative care by providing compassionate support to patients with life-limiting illnesses and their families. Their presence is vital in ensuring comfort, dignity, and quality of life for those facing serious health conditions. Palliative care focuses on pain management, symptom control, emotional support, and holistic well-being, making nurses indispensable in delivering comprehensive care. Their close interaction with patients allows them to assess needs, coordinate treatments, and offer a reassuring presence during a difficult time.One of the most critical responsibilities of nurses in palliative care is pain nurs fpx 6620 assessment 2 and symptom management. Patients with chronic or terminal illnesses often experience severe discomfort, including pain, nausea, shortness of breath, and fatigue. Nurses monitor symptoms closely and administer medications or non-pharmacological interventions to relieve distress. Their ability to assess pain levels and adjust care plans accordingly helps ensure that patients remain as comfortable as possible. By collaborating with physicians and other healthcare providers, nurses play a key role in tailoring treatments to the individual needs of each patient.Beyond physical care, nurses provide crucial emotional and psychological support. Facing a terminal diagnosis can be overwhelming for both patients and their families, leading to anxiety, depression, and fear. Nurses offer comfort through active listening, reassurance, and compassionate presence. They help patients express their feelings, address their concerns, and find meaning in their final days. By fostering trust and emotional connection, nurses create a supportive environment where patients feel heard and valued.Communication is another fundamental aspect of palliative nursing care. Nurses serve as intermediaries between patients, families, and healthcare teams, ensuring that everyone involved understands the patient’s condition, treatment options, and care goals. They help facilitate discussions about end-of-life preferences, advance directives, and ethical decisions. Many patients and families struggle with these conversations, but nurses guide them with sensitivity and empathy, helping them make informed choices about their care.Nurses also provide support for families, who often experience significant emotional strain when caring for a terminally ill loved one. They educate family members about what to expect as the illness progresses and offer guidance on how to provide comfort at home. Additionally, they help families navigate the grief process by acknowledging their emotions and offering coping strategies. Providing respite care for caregivers allows family members to rest and recharge while ensuring that the patient receives continuous attention.Spiritual care is another important aspect of palliative nursing. Many patients facing the end of life seek comfort in their beliefs and personal values. Nurses respect and support these needs by facilitating access to chaplains, spiritual counselors, or religious rituals that align with the patient’s faith. Even for those without specific religious beliefs, nurses help create a peaceful and meaningful experience by honoring their personal wishes and values.In palliative care settings, nurses work closely with interdisciplinary teams to ensure comprehensive and coordinated care. They collaborate with physicians, social workers, physical therapists, and hospice staff to address all aspects of a patient’s well-being. This teamwork ensures that medical, psychological, and social needs are met, allowing for a holistic approach to care. Nurses often act as advocates, ensuring that patients receive appropriate services and that their voices are heard in care decisions.Another key contribution of nurses in palliative care is their role in educating both patients and caregivers. Many people are unfamiliar with palliative care principles, and nurses help clarify its purpose and benefits. They provide practical guidance on managing symptoms, medication administration, and daily care needs. By empowering patients and families with knowledge, nurses help them navigate the palliative journey with greater confidence and understanding.Home-based palliative care is another area where nurses play a critical role. Many patients prefer to spend their final days in the comfort of their own homes rather than in a hospital or care facility. Home care nurses visit these patients regularly, ensuring that they receive proper medical attention and emotional support. They assess the home environment, make necessary adjustments for patient comfort, and educate family caregivers on best practices. Their presence helps bridge the gap between hospital care and home-based support, allowing patients to experience dignity and peace in familiar surroundings.Palliative care nursing also requires a high level of cultural sensitivity. Patients and families come from diverse backgrounds with unique beliefs about death, illness, and medical interventions. Nurses must approach each situation with respect and understanding, tailoring care to align with cultural preferences. By acknowledging and honoring different traditions and perspectives, nurses help create a care experience that respects the dignity and values of every patient.End-of-life care is one of the most nurs fpx 6108 assessment 1 challenging yet rewarding aspects of nursing. Nurses are often present during a patient’s final moments, providing comfort and dignity in their passing. They ensure that pain is controlled, that the patient is surrounded by loved ones if desired, and that the atmosphere is peaceful. Their compassionate presence helps families navigate this profound transition, offering reassurance and support in the midst of loss.Despite the emotional demands of palliative care, many nurses find deep fulfillment in their role. The ability to ease suffering, provide comfort, and support families during a difficult time brings a sense of purpose and meaning. However, the nature of this work can also take an emotional toll. Nurses must practice self-care and seek support when needed to prevent burnout and compassion fatigue. Many healthcare institutions provide counseling, peer support programs, and mindfulness training to help palliative care nurses maintain their well-being.In conclusion, nurses are the backbone of palliative care, offering medical, emotional, and spiritual support to patients with life-limiting illnesses. Their expertise in pain management, communication, advocacy, and compassionate care ensures that patients experience dignity and comfort in their final days. By working closely with families and interdisciplinary teams, nurses help create a holistic care experience that honors the needs and wishes of each individual. Their dedication and empathy make a profound impact on patients and families, reinforcing the vital role of nursing in palliative care.
-
미해결
http-proxy-middleware가 작동하지 않습니다
백엔드 서버는 배포 서버이고프론트 엔드는 로컬 서버입니다프론트 엔드 코드에 http-proxy-middleware를 설정해 적었으나경로가 바뀌지 않는지로그인 시 refresh 토큰을 저장하는 쿠키가 저장이 되질 않습니다..samesite=none 설정하라는 오류가 계속 발생하는데어떻게 해결해야하나요,,?http-proxy-middleware는 이런식으로 적었습니다const { createProxyMiddleware } = require('http-proxy-middleware'); module.exports = function(app) { app.use( '/api', createProxyMiddleware({ target: "http://{백엔드 서버IP}:8080", changeOrigin: true, }) ); };
-
미해결웹소켓/STOMP 채팅서비스(spring, vue, redis)
CORS 설정 어떻게 하셨나요?
원래는 백엔드에서 진행 하는걸로 알고 있는데,간단하게 하기 위해서 프론트쪽에서 설정을 몇 번이고 진행 했는데도 불구하고 계속해서 cors 에러가 납니다.강의에서는 따로 cors 설정을 하셨던건안 나온거 같은데, cors 설정 어떻게 하셨는지 질문 드립니다.(vue.config.js)const { defineConfig } = require('@vue/cli-service'); module.exports = defineConfig({ transpileDependencies: true, devServer: { proxy: { member: { target: 'http://localhost:8080', changeOrigin: true, pathRewrite: { '^/member': '', }, }, }, }, });
-
미해결모두를 위한 딥러닝 - 기본적인 머신러닝과 딥러닝 강좌
computation graph 만드는 부분에서 마지만 출력오류
Session 부분이 없다는 걸로 나오는데,, 그럼 아래와 같이 출력이 되려면 코드를 어떻게 수정해야 할까요?
-
미해결이득우의 언리얼 프로그래밍 Part2 - 언리얼 게임 프레임웍의 이해
스태틱메시 Copy Reference할 때 '를 삭제하지 않는 이유
안녕하세요.Fountain 스태틱 메시를 Copy Reference해서 붙여넣을때 왜 저번과 다르게 '를 빼지않고 그대로 사용하나요?추가로 비주얼 스튜디오에서 ctrl F5로 언리얼이 실행이 안되고 디버그 설정을 하라는 오류가 발생할 땐 어떻게 해야하나요?
-
해결됨친절한 블렌더 - [LV.2] 모델링 연습
Material Properties - Surface - Subsurface - Weight, Scale이 보이지 않습니다.
막힌 부분의 시간과 안 되는 부분과 현상34:41, 블렌더 버전이 달라서 그런건지ㅠㅠ 제 화면에서는 스크린샷과 같이 나와서요. Weight, Scale 등이 보이지 않는데 어떻게 해결해야 하는걸까요?
-
해결됨[UI3 업데이트] 피그마 배리어블을 활용한 디자인 시스템 구축하기
완강 이벤트
볼드님 안녕하세요! 설문조사 및 수강평 작성했습니다.제공해주시는 자료는 이메일로 전달해주시는걸까요??
-
미해결
Reliable Dell Repair Center in Dockyard Road – Genuine Parts & Expert Repairs
Get your Dell laptop fixed hassle-free! Our Dell laptop service center in Dockyard Road is your one-stop solution for all laptop issues, including software glitches and hardware failures. As an established Dell service center in Dockyard Road, we use certified parts and advanced repair techniques. Need a Dell repair center in Dockyard Road or a Dell service center near me? Visit us for top-quality repairs, fast turnaround times, and excellent customer support.
-
미해결
Why AI Apps Are Important: Transforming the Digital World?
Artificial intelligence (AI) has become a driving force in modern technology, influencing various industries worldwide. AI applications (AI apps) are now essential tools that improve efficiency, enhance decision-making, and automate complex tasks. As businesses and individuals increasingly rely on AI, understanding its significance is crucial.Enhancing Efficiency and ProductivityOne of the primary reasons AI apps are important is their ability to enhance efficiency. AI-driven automation reduces human workload by handling repetitive tasks, allowing professionals to focus on higher-level responsibilities. For example, AI-powered chatbots provide instant customer support, reducing response times and improving user experience. Additionally, AI in business applications streamlines operations, such as inventory management and data processing, leading to increased productivity.Improving Decision-Making with Data InsightsAI apps help businesses and individuals make better decisions by analyzing large volumes of data. Machine learning algorithms process data faster than humans, identifying trends and patterns that might otherwise go unnoticed. In sectors like finance, healthcare, and marketing, AI-powered analytics tools assist in making informed decisions, minimizing risks, and optimizing performance.Personalizing User ExperiencesAI is transforming user experiences by offering personalized recommendations. Streaming services like Netflix and Spotify use AI algorithms to suggest movies and music based on user preferences. E-commerce platforms also leverage AI to provide tailored shopping experiences, enhancing customer satisfaction. By analyzing user behavior, AI apps create more engaging and relevant interactions.Enhancing CybersecurityAs cyber threats become more sophisticated, AI plays a critical role in enhancing security measures. AI-powered cybersecurity apps detect and prevent potential threats by analyzing patterns in data. These systems identify anomalies and respond to cyber threats in real-time, ensuring better protection for businesses and individuals. AI-driven security tools are now indispensable for safeguarding sensitive information.Revolutionizing HealthcareThe healthcare industry has greatly benefited from AI apps, which aid in diagnostics, treatment planning, and patient monitoring. AI-powered medical imaging tools detect diseases with high accuracy, improving early diagnosis and treatment outcomes. Additionally, AI chatbots assist patients by providing medical advice and appointment scheduling, making healthcare more accessible and efficient.Driving Innovation in BusinessAI fosters innovation by enabling businesses to develop new products and services. AI-driven solutions enhance customer interactions, optimize supply chains, and improve operational efficiency. Companies that integrate AI into their workflows gain a competitive edge, as AI-powered insights help them adapt to changing market trends.AI in EducationAI apps are transforming education by offering personalized learning experiences. Online platforms use AI to analyze student performance and provide customized study plans. Virtual tutors powered by AI help students understand complex subjects, making education more accessible and effective.ConclusionThe importance of AI apps cannot be overstated. From improving efficiency and decision-making to personalizing user experiences and enhancing security, AI is revolutionizing multiple industries. As AI technology continues to evolve, its applications will only become more integral to daily life and business operations. Adopting AI-powered solutions is essential for staying ahead in the digital age.
-
미해결[2025년 출제기준] 웹디자인기능사 실기시험 완벽 가이드
A3 크로스페이드 슬라이드가 이상합니다.
저만 그런건지는 모르겠으나, 세번째 슬라이드 이미지가 고정된 상태에서 첫번째, 두번째 슬라이드 이미지가 빠르게 점멸한 뒤 크로스페이드 슬라이드가 시작합니다. 혹시 뭐가 문제일까요?(제일 아래쪽에 코드 텍스트 있습니다.) @charset "utf-8"; body{ margin: 0; font-size: 15px; background-color: #fff; color: #333333; } a{ text-decoration: none; color: #333333; } .container{ border: 1px solid red; width: 1200px; margin: auto; } header{ background-color: rgb(150, 167, 236); height: 100px; } header div{ /* border: 1px solid blue; */ height: 100px; } .header-logo{ width: 200px; float: left; } .navi{ width: 600px; float: right; } .slide{ width: 1200px; height: 300px; position: relative; overflow: hidden; } .slide-items{ position: relative; } .slide-item{ position: absolute; top: 0; left: 0; } .slide div{ /* border: 1px solid green; */ height: 300px; } .items{ overflow: hidden; } .items div{ border: 1px solid violet; box-sizing: border-box; float: left; height: 200px; } .notice{ width: 500px; } .banner{ width: 350px; } .direct{ width: 350px; } footer{ background-color: rgb(222, 222, 222); overflow: hidden; } footer>div{ /* border: 1px solid salmon; */ height: 100px; float: left; box-sizing: border-box; } /*여기서부터는 일부분만 선택해서 적용하는거라 반드시 꺽쇠를 써야함!*/ .footer-logo{ width: 200px; } .footer-menu{ width: 1000px; } .footer-menu div{ /* border: 1px solid blueviolet; */ height: 50px; } /*모듈 이외 부분*/ .header-logo, .footer-logo{ text-align: center; line-height: 130px; } .footer-menu{ text-align: center; padding-top: 15px; } .footer-menu>div a{ padding: 10px; } .banner a>img, .direct a>img{ width: 350px; height: 200px; }ㅡㅡㅡㅡㅡㅡㅡㅡㅡ<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/stylesheet.css"> <script src="js/jquery-1.12.4.js"></script> <script src="js/custom.js"></script> <title>A3</title> </head> <body> <div class="container"> <header> <div class="header-logo"> <a href="#"> <img src="img/headerlogo.png" alt="header-logo"> </a> </div> <div class="navi"></div> </header> <div class="slide"> <div class="slide-items"> <a class="slide-item" href="#"> <img src="img/slide1.png" alt="slide1"> </a> <a class="slide-item" href="#"> <img src="img/slide2.png" alt="slide2"> </a> <a class="slide-item" href="#"> <img src="img/slide3.png" alt="slide3"> </a> </div> </div> <div class="items"> <div class="notice"></div> <div class="banner"> <a href="#"> <img src="img/banner.jpg" alt="banner"> </a> </div> <div class="direct"> <a href="#"> <img src="img/direct.png" alt="direct"> </a> </div> </div> <footer> <div class="footer-logo"> <a href="#"> <img src="img/footerLogo.png" alt="footer-logo"> </a> </div> <div class="footer-menu"> <div> <a href="#"> 하단메뉴1 </a> <a href="#"> 하단메뉴2 </a> <a href="#"> 하단메뉴3 </a> </div> <div> COPYRIGHTⓒ by WEBDESIGN. ALL RIGHTS RESERVED </div> </div> </footer> </div> </body> </html>@charset "utf-8"; body{ margin: 0; font-size: 15px; background-color: #fff; color: #333333; } a{ text-decoration: none; color: #333333; } .container{ border: 1px solid red; width: 1200px; margin: auto; } header{ background-color: rgb(150, 167, 236); height: 100px; } header div{ /* border: 1px solid blue; */ height: 100px; } .header-logo{ width: 200px; float: left; } .navi{ width: 600px; float: right; } .slide{ width: 1200px; height: 300px; position: relative; overflow: hidden; } .slide-items{ position: relative; } .slide-item{ position: absolute; top: 0; left: 0; } .slide div{ /* border: 1px solid green; */ height: 300px; } .items{ overflow: hidden; } .items div{ border: 1px solid violet; box-sizing: border-box; float: left; height: 200px; } .notice{ width: 500px; } .banner{ width: 350px; } .direct{ width: 350px; } footer{ background-color: rgb(222, 222, 222); overflow: hidden; } footer>div{ /* border: 1px solid salmon; */ height: 100px; float: left; box-sizing: border-box; } /*여기서부터는 일부분만 선택해서 적용하는거라 반드시 꺽쇠를 써야함!*/ .footer-logo{ width: 200px; } .footer-menu{ width: 1000px; } .footer-menu div{ /* border: 1px solid blueviolet; */ height: 50px; } /*모듈 이외 부분*/ .header-logo, .footer-logo{ text-align: center; line-height: 130px; } .footer-menu{ text-align: center; padding-top: 15px; } .footer-menu>div a{ padding: 10px; } .banner a>img, .direct a>img{ width: 350px; height: 200px; }$('.slide-item:gt(0)').hide(); setInterval(function(){ $('.slide-item:first-child').fadeOut(500).next().fadeIn(500); $('.slide-item:first-child').appendTo('.slide-items'); }, 3000);
-
미해결실무자를 위한 구글애널리틱스(GA4+GTM) 활용법(25년 Update)
<head>, <body> 질문
선생님 안녕하세요,ga 가입절차에서 나오는 <head> 스크립트는 개발자 혹은 관리자한테 이메일을 보내라고 말씀해 주셨잖아요~! 그런데 gtm에서도 <head>, <body>가 나오던데 그럼 이메일 보낼 때 gtm 내용도 한 번에 보내나요? 그럼 <head>에 해당하는 스크립트가 2개인데 관리자, 개발자께서 알아 들으실까요??
-
미해결웹소켓/STOMP 채팅서비스(spring, vue, redis)
강의 내 1 번 방법에 대한 질문
강의 설명중 1 번 방법에서누가 서버에 커넥션을 맺고 있고 subscribe 하는지 서버에 메모리를 만들어서 관리하는 로직을 사용한다고 하셨는데 이전에 강의에서 배운내용에 따르면 스프링과 stomp 는 기본적으로 세션관리를 내부적으로 처리한다고 하셔서즉 저희가 직접 접근을 하지못하는데 이러면 이벤트 리스너로 따로 sessions라는 자료구조를 만든 것을 활용해서 코드를 작성해야 하잖아요 ? 그리고 세션은 랜덤으로 스프링에서 생성하는데 이러면 세션이 몇개인지 카운트 및 각각 세션id가 부여되긴하는데그게 어떤 사용자인지 구분이 안되기에 StompHandler에서 connect 맺을때 검증 후에 추가적으로 이메일정보를 String email = claims.getSubject();accessor.getSessionAttributes().put("email", email);로 설정해서 이벤트 리스너에 넘겨서 세션을 저장하는 식으로 생각했는데 맞을까요 ?이후 서버에서 처리할때 subscribe하면서 , 동시에 누가 서버에 커넥션을 맺고있는지 아닌지 여부를 파악하는 (다소 복잡한) 로직을 작성해서 처리할 수 있다 이게 맞는 흐름일까요 ?