[CSS] focus blue outline 삭제 방법
button:focus { outline: 0; }위와같이 css에서 selector 한 후에 outline을 0으로 변경한다.
- Programming/Css
- · 2019. 4. 18.
mysql 8버전에서 group by 실행시 아래와 같이 에러메세지 출력 this is incompatible with sql_mode=only_full_group_by 찾아본봐로는 보안때문에 groupy 절외에 데이터를 참조할수 없다고 한다. 해결방법 mysql root 권한으로 아래 명령어 실행 SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
button:focus { outline: 0; }위와같이 css에서 selector 한 후에 outline을 0으로 변경한다.
JPA로 조회를 하다보면 연관관계에 데이터를 모두 가져오다 보니 때때로 노출하고 싶지 않은 데이터도 가져오게 된다. 그럴때 쓰는 방법 소스는 이전글을 참조 2019/03/20 - [JPA] - [JPA] manytoone n+1 문제? 예를 들어 아래와 같은 member entity를 가지고 있다고 할때 @Entity @Getter @Setter public class Member { @Id @GeneratedValue private Long id; private String name; private String phone; private String address; @ManyToOne @JoinColumn(name="team_id") private Team team; } api에는 id와 name만 내..
JPA에서 @manytoone으로 다른 entity와 join했을 경우 list를 출력하면, 리스트를 한번 조회하고, join column의 id 수만큼 다시 select를 하게된다. Member.java@Entity @Getter @Setter public class Member { @Id @GeneratedValue private Long id; private String name; @ManyToOne @JoinColumn(name="team_id") private Team team; }MemberRepo.javapublic interface MemberRepo extends JpaRepository {}Team.java@Entity @Getter @Setter public class Team { @..
merge 혹은 rebase 중 실수로 내가 작업한 파일을 덮어썼을때.. (멘붕..) git reflog --date=iso 로 commit log를 확인하고 롤백한 commit log로 체크아웃 해준 후에 다시 돌려 놓는다.
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"..