java
難しくて1週間くらいかかりました・・・。 実装環境 Ubuntu 18.04(LTS) PostgreSQL Maven Spring MVC Junit5 DBunit JdbcTemplate テストしたいコード @Repository public class UserDaoImpl implements UserDao { @Autowired private JdbcTemplate jdbcTemp…
作業環境 Ubuntu 18.04(LTS) Spring MVC Maven Junit5 IntelliJ IDEA Community Jacocoとは テスト時のカバレッジを取得し、HTMLファイルに出力してくれるツールです。 https://www.eclemma.org/jacoco/ 実行手順 pom.xml にjacocoのプラグインを追加する。 <dependency> <groupId></groupid></dependency>…
Tomcatサーバ起動時にエラー At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanni…
Junit5でのテスト時に丸一日ハマっためも javax.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecifie…