Home

[Spring JPA] findAll 함수에서 OrderBy 사용하고 싶을 때, findAllByOrderByColumnDesc 사용하기

JPA를 사용하다보면 JPARepository 를 상속받아서 findAll 메소드를 많이 사용합니다. 모든 컬럼을 조회하기 위해 findAll 을 사용하죠. 이 때, 원하는 컴럼의 순서대로 정렬하고 싶을 때가 있을 것입니다. 이 때, 함수 이름은 findAllByOrderByColumnDesc 와 같은 식으로 사용해줘야됩니다. Column 에는 우리가 원하는 컬럼의 이름을 써주는 것이죠. findAllOrderByPriceDesc 와 같은 방식으로요. 만약 By를 사용하지 않으면 에러가 발생하게 됩니다. findAllOrderByPriceDesc -> findAllOrderByPriceDesc // 아래와...

Read more

[Spring boot Error] failed to convert java.lang.String to org.springframework .boot.logging.LogLevel (caused by java.lang. IllegalArgumentException: No enum constant org.springframework.boot.logging.LogLevel.true)

1. Problem When i program using Spring boot, i met under problem. I couldn’t see the server run state. 2022-02-18 02:14:42.965 ERROR 11560 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'logging...

Read more

Jekyll 블로그에서 disqus 댓글 제거 _ 광고가 너무 많다!

Jekyll 블로그에서 disqus 댓글 플러그인을 제거해버렸습니다. 이유는 광고가 너무 과도하게 많아요 ㅜ 위의 댓글창 위아래로 광고가 있네요.. ㅎㅎ 사실 개발자들도 돈 벌어야되니까 어느 정도 이해는 되는데 이건 좀 심하다 싶어서 제거하게 되었습니다. 광고에 둔감한데도 너무 심하게 많고 + 너무 이상한 광고(뉴스 보면 나오는 이상한 광고들)이 너무 많이 나와서 제거를 결심했습니다. _config.yml 파일에서 comments 설정 disqus 제거 성공! ㅎㅎ 서비스 개발에 있어 광고를 너무 과도하게 넣으면 안되겠다는 생각을 했습니다.

Read more

[IntelliJ Error] Spring boot 개발 중 LinkageError occurred while loading main class _ JAVA 버전으로 인한 에러

인텔리제이를 통하여 스프링부트를 이용하던 도중 아래와 같은 에러가 발생했습니다. 어제는 전혀 문제가 없었는데 갑자기 문제가 발생했습니다. Error: LinkageError occurred while loading main class com.user.firstspring.FirstspringApplication java.lang.UnsupportedClassVersionError: com/user/firstproject/FirstspringApplication has been compiled by a more recent version of the Java Runtime (class file version ...

Read more

[Spring Boot Error] nested exception is org.h2.jdbc.JdbcSQLSyntaxErrorException: Table ARTICLE not found; SQL statement

When i try the spring boot, i can see this error. This error makes we cannot initializate our data. Caused by: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/Users/Programming/firstProject/build/resources/main/data.sql]: INSERT INTO article(id, title, content) ...

Read more

[IntelliJ Error] Unable to parse template Class, mapped to not java file type 'Auto-detect file type by content'

When i program on IntelliJ, I saw the error like under. I want to see ‘Article.java’ to java file, but i just can see on this file text type. This is a matter. Cannot Create Class Unable to parse template "Class" Error message: Selected class file name 'ArticleForm.java' mapped to not java file type 'Auto-detect file type by content' I f...

Read more

[Git Error] Mac 에서 Repository not found fatal: repository 'https://github.com/user/project.git/' not found

user@user % git push origin master (...) remote: Repository not found. fatal: repository 'https://github.com/user/project.git/' not found MAC 에서 터미널에서 Git push를 시도 중, 어느 날 잘 되던 Git push가 제대로 동작하지 않았습니다. 갑자기 오류를 한동안 찾다가 원인을 찾아 공유드리게 되었습니다. Mac 에서는 깃허브를 연동할 때 현재는 token(토큰)을 필수적으로 사용해야 됩니다. 지속적으로 문제 원인을 찾다가 저는 token 기간이 만료되어 발생하는 문제인 것을 확인했습니다...

Read more

[Docusaurus Error] Running git push command failed. Does the GitHub user account you are using have push access to the repository?

user@user % GIT_USER=[USERNAME] yarn deploy yarn run v1.22.17 $ docusaurus deploy [WARNING] When deploying to GitHub Pages, it is better to use an explicit "trailingSlash" site config. Otherwise, GitHub Pages will add an extra trailing slash to your site urls only on direct-access (not when navigation) with a server redirect. This behavior can ...

Read more

[Error Solve] remote-htts/htps is not a git command?

user@user % git push origin main git: 'remote-htts' is not a git command. See 'git --help'. The most similar command is remote-https What is ‘remote-htts’ is not a git command or ‘htps’? You can see this error when you using git. This issue made by wrong remote origin url. When i confirm my remote origin, i found that this issue caused by my...

Read more