๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ (125) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ datetimepicker 400์๋ฌ (์๋ฃํ) ์ ๋ชจ ๋ง๋๋ ์๊ฐ์ ์ ํ๊ธฐ ์ํด์ datetimepicker๋ฅผ ์ฌ์ฉํด์ผ ํ๋๋ฐ // JS์ฝ๋ jQuery('#datetimepicker').datetimepicker({ format:'Y-m-d H:i', lang:'ko' }); }); ๊ณ์ ์ปจํธ๋กค๋ฌ๋ก ๋์ด๊ฐ์ง ์๊ณ 400์๋ฌ๊ฐ ๋ฐ์ datepicker๋ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฌ์ ๋ vo์ ์๋ฃํ ๋๋ฌธ์ด์์ผ๋๊น ๊ฐ์ ์ํฉ์ด๊ฒ ์ง ํ๊ณ ๊ตฌ๊ธ๋ง! vo ์ Date(java.sql) ํ์ ์ LocalDateTime์ผ๋ก ๋ฐ๊ฟ์ฃผ๊ณ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") ์ด๋ ธํ ์ด์ ์ ์ฌ์ฉ >> ์๋ฃํ์ LocalDateTime์ผ๋ก ์ง์ ํ๋ mysql์์ ๋ค์ ๊ฐ์ ธ์ฌ ๋ null ๊ฐ์ด ๋ธ String ํ์ผ๋ก ๋ฐ๊พธ๋ insert์ s.. JOINUS - ์นดํ ๊ณ ๋ฆฌ๋ณ ๋ฆฌ์คํธ(mapper์์ ํ ์ด๋ธ ๋ค์ค ์กฐ์ธํ๊ธฐ) ์ ์ฒด ํด๋ฝ ๋ฆฌ์คํธ์ ์นดํ ๊ณ ๋ฆฌ๋ณ ํด๋ฝ ๋ฆฌ์คํธ๋ก ๊ตฌ๋ถ * Controller - interest_no != null ์ด๋ interest_no == "" ์ด input String "" ์ค๋ฅ๊ฐ ๋ ์ ๊ณ์ ๊ณ ๋ฏผํ๋ค๊ฐ ์ฐพ์ isEmptyํจ์(isBlank ํจ์๋ ๊ฐ๋ฅ) * DB๊ฐ ์ธ๋ถํ ๋์ด ์์ด์ ๊ณ์ํด์ JOIN์ ์จ์ผ ํ๋๋ฐ ๊ตฌ๊ธ๋งํ๋ค๊ฐ MAPPER์์ ResultMap๊ณผ selectํ ์ ๋ณด๋ฅผ ์๋ก์ด VO๋ฅผ ๋ง๋ค์ด ์ ์ฅํ๋ ๋ฐฉ๋ฒ์ผ๋ก ์งํ VO๋ ํ ์ด๋ธ๊ณผ ๋๊ฐ์ด ๋ง๋ค์ด ์คฌ์ ClubTotalBean ์ ์ฌ์ฉํด์ ๋ด๊ฐ ๊ฐ์ ธ์ฌ ์ ๋ณด๋ค์ด ์๋ VO๋ค์ ๋ฃ์ด์ค๋ค(๋กฌ๋ณต ์ฌ์ฉ) ์๋น์ค์์ ClubTotalBean์ผ๋ก List๋ฅผ ๋ฐ๋ ๋ฉ์๋๋ฅผ ์์ฑ ClubDAO๋ฅผ ์ฃผ์ ๋ฐ์ ServiceImpl ์์ dao๋ก ํธ์ถ DAO.. JOINUS - ๊ธฐ๋ณธ ์ค์ ์ฃผ์ : ์ง์ญ๊ธฐ๋ฐ ์๋ชจ์ ์ปค๋ฎค๋ํฐ ํ๋ซํผ ์ธ์ : 6๋ช ๊ธฐ๊ฐ : 2022.6.27 ~ 2022.7.27 ๊ฐ๋ฐํ๊ฒฝ OS : Windows10 Server : Tomcat8.5 Language : Java, JavaScript, HTML5, CSS DB : MySQL8.0 Framework : Spring, MyBatis, Bootstrap Hosting : Cafe24 ETC : Git ๋ด๊ฐ ๋งก์ ๊ธฐ๋ฅ 1. ์๋ชจ์ ๋ฆฌ์คํธ 2. ๋ชจ์ ๊ด๋ฆฌ ํ์ด์ง 3. ๋ชจ์ ๋๊ฐ๊ธฐ 4. ๋ชจ์ ํ์ ๊ฐํด๊ธฐ๋ฅ 5. ๋ชจ์์ฅ ๊ถํ ๋๊ฒจ์ฃผ๊ธฐ MYSQL - Error Code : 1175 * ํ์์ ์ญ์ ํ๋ ค๊ณ ํ๋๋ฐ ๋ฐ์ํ ์ค๋ฅ Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. mysql์์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ํ ํด ๋์ ์ค์ ์ด delete๋ ํ๋์ row๋ง ๊ฐ๋ฅํ๋๋ก ๋์ด์๊ธฐ ๋๋ฌธ ํด๊ฒฐ ๋ฐฉ๋ฒ : Workbench - edit - Preferences์์ ์์ ๋ชจ๋(Safe mode)๋ฅผ ํด์ ํ๋ค. >> workbench ์ฌ์คํ Error : ๋์ ์ฟผ๋ฆฌ <where> ์ฌ์ฉ์ ์๋ฌ org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'interest_no' in 'class java.lang.Integer' org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) org.springfra.. ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Eunb\TeamProject\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtp.. Error : SEVERE: ์์ ์ปจํ ์ด๋๋ฅผ ์์ ์ค ์คํจํ์ต๋๋ค. SEVERE: ์์ ์ปจํ ์ด๋๋ฅผ ์์ ์ค ์คํจํ์ต๋๋ค. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: ๊ตฌ์ฑ์์ [org.apache.catalina.webresources.StandardRoot@7ec8a38f]์(๋ฅผ) ์์ํ์ง ๋ชปํ์ต๋๋ค. at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at org.apache.catalina.core.ContainerBase.startInternal(ContainerB.. ERROR : org.springframework.web.util.NestedServletException org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Optional int parameter 'club_no' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type. club_no๋ฅผ ๋ฐ๋๋ฐ null๋ก ๋ณํ๋จ ํด๊ฒฐ : ์ฃผ์์ค์ด๋ ์ ์ธํด์ค ๋ณ์๋ช ์ด๋ ์ผ์นํ๋์ง ํ์ธ ์ด์ 1 2 3 4 5 6 7 8 ยทยทยท 16 ๋ค์