downgrade OSHI due to error 500 (#21)
* downgrade OSHI due to error 500 * bump version
This commit is contained in:
parent
3f79411f9f
commit
18f23ae9cb
|
@ -1,8 +1,8 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Ward" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
|
||||
<option name="ACTIVE_PROFILES" />
|
||||
<module name="ward" />
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="dev.leons.ward.Ward" />
|
||||
<option name="ALTERNATIVE_JRE_PATH" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>dev.leons</groupId>
|
||||
<artifactId>ward</artifactId>
|
||||
<version>2.1.8</version>
|
||||
<version>2.1.9</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<!-- parent pom -->
|
||||
|
@ -17,7 +17,7 @@
|
|||
|
||||
<!-- project properties -->
|
||||
<properties>
|
||||
<oshiVersion>6.1.6</oshiVersion>
|
||||
<oshiVersion>6.1.4</oshiVersion>
|
||||
<jnaVersion>5.11.0</jnaVersion>
|
||||
<lombokVersion>1.18.24</lombokVersion>
|
||||
<ini4jVersion>0.5.4</ini4jVersion>
|
||||
|
|
|
@ -66,7 +66,7 @@ public class ControllerExceptionHandler
|
|||
public String exceptionHandler(final Exception exception, final Model model) throws IOException
|
||||
{
|
||||
model.addAttribute("theme", utilitiesComponent.getFromIniFile("theme"));
|
||||
|
||||
System.out.println(exception.getMessage());
|
||||
return (exception instanceof HttpRequestMethodNotSupportedException) ? "error/404" : "error/500";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue