SpringBootの起動時にthymeleafのエラーが出てしまいます。
pom.xmlで何か指定が必要なのでしょうか?
SpringBootのバージョンは2.5です。
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [jp.co.XXX.XXX.XXX];
nested exception is java.io.FileNotFoundException: class path resource [org/thymeleaf/dialect/IExpressionEnhancingDialect.class] cannot be opened because it does not exist
・
・
・
・
Caused by: java.io.FileNotFoundException: class path resource [org/thymeleaf/dialect/IExpressionEnhancingDialect.class] cannot be opened because it does not exist
・
・
・
追記:
すみません。javaを1.7→11、SpringBootを1.2→2.5にupdateして、
mvn spring-boot:runをしましたが、上記のエラーとなってしまっています。
※ その間に色々なエラーが出ましたが1つずつ解消していきました。
POM.XMLは以下のようになっています。
pom.xml
1<?xml version="1.0" encoding="UTF-8"?> 2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4 <modelVersion>4.0.0</modelVersion> 5 6 <groupId>XXXX</groupId> 7 <artifactId>XXXX</artifactId> 8 <version>1.0.11-SNAPSHOT</version> 9 <packaging>war</packaging> 10 11 <name>XXXX</name> 12 13 <parent> 14 <groupId>org.springframework.boot</groupId> 15 <artifactId>spring-boot-starter-parent</artifactId> 16 <version>2.5.0</version> 17 </parent> 18 19 <dependencies> 20 21 <dependency> 22 <groupId>com.example</groupId> 23 <artifactId>XXXX-XXXX</artifactId> 24 <version>1.0.11-SNAPSHOT</version> 25 </dependency> 26 27 <dependency> 28 <groupId>org.springframework.boot</groupId> 29 <artifactId>spring-boot-starter-web</artifactId> 30 </dependency> 31 <dependency> 32 <groupId>org.springframework.boot</groupId> 33 <artifactId>spring-boot-starter-thymeleaf</artifactId> 34 </dependency> 35 36 <dependency> 37 <groupId>org.springframework.boot</groupId> 38 <artifactId>spring-boot-starter-data-jpa</artifactId> 39 </dependency> 40 41 <dependency> 42 <groupId>org.webjars</groupId> 43 <artifactId>bootstrap</artifactId> 44 <version>3.2.0</version> 45 <scope>provided</scope> 46 </dependency> 47 <dependency> 48 <groupId>org.lazyluke</groupId> 49 <artifactId>log4jdbc-remix</artifactId> 50 <version>0.2.7</version> 51 <scope>provided</scope> 52 </dependency> 53 <dependency> 54 <groupId>org.projectlombok</groupId> 55 <artifactId>lombok</artifactId> 56 <version>1.18.20</version> 57 <scope>provided</scope> 58 </dependency> 59 <dependency> 60 <groupId>org.springframework.boot</groupId> 61 <artifactId>spring-boot-starter-test</artifactId> 62 <scope>test</scope> 63 </dependency> 64 <dependency> 65 <groupId>mysql</groupId> 66 <artifactId>mysql-connector-java</artifactId> 67 <scope>runtime</scope> 68 </dependency> 69 <dependency> 70 <groupId>org.apache.velocity</groupId> 71 <artifactId>velocity</artifactId> 72 <version>1.7</version> 73 <scope>compile</scope> 74 </dependency> 75 <dependency> 76 <groupId>org.springframework</groupId> 77 <artifactId>spring-context-support</artifactId> 78 <scope>compile</scope> 79 </dependency> 80 <dependency> 81 <groupId>org.springframework.boot</groupId> 82 <artifactId>spring-boot-starter-mail</artifactId> 83 <version>1.2.1.RELEASE</version> 84 <scope>provided</scope> 85 </dependency> 86 <dependency> 87 <groupId>javax.mail</groupId> 88 <artifactId>mail</artifactId> 89 <version>1.4</version> 90 <scope>compile</scope> 91 </dependency> 92 <dependency> 93 <groupId>org.springframework.boot</groupId> 94 <artifactId>spring-boot-starter-security</artifactId> 95 <scope>provided</scope> 96 </dependency> 97 <dependency> 98 <groupId>org.springframework.security</groupId> 99 <artifactId>spring-security-core</artifactId> 100 <version>3.2.5.RELEASE</version> 101 </dependency> 102 <dependency> 103 <groupId>org.springframework.security</groupId> 104 <artifactId>spring-security-web</artifactId> 105 <version>3.2.5.RELEASE</version> 106 </dependency> 107 <dependency> 108 <groupId>org.springframework.security</groupId> 109 <artifactId>spring-security-config</artifactId> 110 <version>3.2.5.RELEASE</version> 111 </dependency> 112 <dependency> 113 <groupId>org.apache.poi</groupId> 114 <artifactId>poi</artifactId> 115 <version>3.11</version> 116 <scope>provided</scope> 117 </dependency> 118 <dependency> 119 <groupId>org.apache.poi</groupId> 120 <artifactId>poi-ooxml</artifactId> 121 <version>3.11</version> 122 <scope>provided</scope> 123 </dependency> 124 <dependency> 125 <groupId>org.apache.poi</groupId> 126 <artifactId>poi-ooxml-schemas</artifactId> 127 <version>3.11</version> 128 <scope>provided</scope> 129 </dependency> 130 <dependency> 131 <groupId>org.apache.poi</groupId> 132 <artifactId>poi-scratchpad</artifactId> 133 <version>3.11</version> 134 <scope>provided</scope> 135 </dependency> 136 <dependency> 137 <groupId>org.bbreak.excella</groupId> 138 <artifactId>excella-core</artifactId> 139 <version>1.10</version> 140 </dependency> 141 <dependency> 142 <groupId>org.bbreak.excella</groupId> 143 <artifactId>excella-reports</artifactId> 144 <version>1.8</version> 145 </dependency> 146 <dependency> 147 <groupId>org.springframework.boot</groupId> 148 <artifactId>spring-boot-starter-tomcat</artifactId> 149 <scope>provided</scope> 150 </dependency> 151 <dependency> 152 <groupId>org.apache.httpcomponents</groupId> 153 <artifactId>httpclient</artifactId> 154 </dependency> 155 <dependency> 156 <groupId>org.apache.commons</groupId> 157 <artifactId>commons-lang3</artifactId> 158 <version>3.4</version> 159 </dependency> 160 161 <!--API, java.xml.bind module --> 162 <dependency> 163 <groupId>jakarta.xml.bind</groupId> 164 <artifactId>jakarta.xml.bind-api</artifactId> 165 <version>2.3.2</version> 166 </dependency> 167 <!--Runtime, com.sun.xml.bind module --> 168 <dependency> 169 <groupId>org.glassfish.jaxb</groupId> 170 <artifactId>jaxb-runtime</artifactId> 171 <version>2.3.2</version> 172 </dependency> 173 <dependency> 174 <groupId>org.springframework.boot</groupId> 175 <artifactId>spring-boot-starter-validation</artifactId> 176 </dependency> 177 </dependencies> 178 179 <properties> 180 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 181 <java.version>11</java.version> 182 </properties> 183 184 <build> 185 <finalName>XXXXX</finalName> 186 <plugins> 187 <plugin> 188 <groupId>org.springframework.boot</groupId> 189 <artifactId>spring-boot-maven-plugin</artifactId> 190 <dependencies> 191 <dependency> 192 <groupId>org.springframework</groupId> 193 <artifactId>springloaded</artifactId> 194 <version>1.2.8.RELEASE</version> 195 </dependency> 196 </dependencies> 197 <configuration> 198 <mainClass>XXXX</mainClass> 199 </configuration> 200 </plugin> 201 202 <plugin> 203 <artifactId>maven-compiler-plugin</artifactId> 204 <version>3.7.0</version> 205 <configuration> 206 <source>10</source> 207 <target>10</target> 208 <release>10</release> 209 <forceJavacCompilerUse>true</forceJavacCompilerUse> 210 <compilerArgs> 211 <arg>-Werror</arg> 212 <arg>-verbose</arg> 213 </compilerArgs> 214 </configuration> 215 </plugin> 216 </plugins> 217 </build> 218</project> 219
回答1件
あなたの回答
tips
プレビュー