title: Swagger codegen Maven plugin does not generate correct dateFormat java.time.LocalDate in SpringBoot
body: <p>I'm facing a problem with class generation by Swagger codegen plugnin. The plug in doesn't generate the correct date format for some fields in some model classes. LocalDate is translated into org.joda.time.LocalDate instead of java.time.LocalDate.</p>
  <p>Here is my plugin configuration in my pom.xml:</p>
  <pre><code>&lt;plugin&gt;
                  &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                  &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.2.3&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;1&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;inputSpec&gt;http:aCertainHttpAdress&lt;/inputSpec&gt;
                              &lt;language&gt;spring&lt;/language&gt;
                              &lt;modelPackage&gt;${project.groupId}.model.myPackage&lt;/modelPackage&gt;
                              &lt;generateSupportingFiles&gt;false&lt;/generateSupportingFiles&gt;
                              &lt;generateApis&gt;false&lt;/generateApis&gt;
                              &lt;output&gt;src/main/gen&lt;/output&gt;
                              &lt;configOptions&gt;
                                  &lt;sourceFolder&gt;/&lt;/sourceFolder&gt;
                              &lt;/configOptions&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
  </code></pre>
  <p>I have tried already to add these two configurations:</p>
  <pre><code>&lt;typeMappings&gt;
     &lt;typeMapping&gt;LocalDate=LocalDate&lt;/typeMapping&gt;
  &lt;/typeMappings&gt;
  &lt;importMappings&gt;                                 
     &lt;importMapping&gt;org.joda.time.LocalDate=java.time.LocalDate&lt;/importMapping&gt;
  &lt;/importMappings&gt;
  </code></pre>
  <p>but with no success.</p>
  <p>I've also added this one:</p>
  <pre><code>&lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
  </code></pre>
  <p>same result...</p>
  <p>Here is the generated model class with the wrong import:</p>
  <pre><code>import java.util.Objects;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonCreator;
  import io.swagger.annotations.ApiModel;
  import io.swagger.annotations.ApiModelProperty;
  import java.math.BigDecimal;
  import org.joda.time.LocalDate;
  import javax.validation.Valid;
  import javax.validation.constraints.*;
  
  /**
   * VoceBilancioDto
   */
  @javax.annotation.Generated(value = &quot;io.swagger.codegen.languages.SpringCodegen&quot;, date = &quot;2021-02-10T18:39:49.642+01:00&quot;)
  
  public class VoceBilancioDto   {
    @JsonProperty(&quot;codeItem&quot;)
    private String codeItem = null;
  
    @JsonProperty(&quot;dateUpdateValue&quot;)
    private LocalDate dateUpdateValue = null;
  
    @JsonProperty(&quot;value&quot;)
    private BigDecimal value = null;
  
    public VoceBilancioDto codeItem(String codeItem) {
      this.codeItem = codeItem;
      return this;
    }
  
     /**
     * Get codeItem
     * @return codeItem
    **/
    @ApiModelProperty(value = &quot;&quot;)
  
  
    public String getCodeItem() {
      return codeItem;
    }
  
    public void setCodeItem(String codeItem) {
      this.codeItem = codeItem;
    }
  
    public VoceBilancioDto dateUpdateValue(LocalDate dateUpdateValue) {
      this.dateUpdateValue = dateUpdateValue;
      return this;
    }
  
     /**
     * Get dateUpdateValue
     * @return dateUpdateValue
    **/
    @ApiModelProperty(value = &quot;&quot;)
  
    @Valid
  
    public LocalDate getDateUpdateValue() {
      return dateUpdateValue;
    }
  
    public void setDateUpdateValue(LocalDate dateUpdateValue) {
      this.dateUpdateValue = dateUpdateValue;
    }
  
    public VoceBilancioDto value(BigDecimal value) {
      this.value = value;
      return this;
    }
  
     /**
     * Get value
     * @return value
    **/
    @ApiModelProperty(value = &quot;&quot;)
  
    @Valid
  
    public BigDecimal getValue() {
      return value;
    }
  
    public void setValue(BigDecimal value) {
      this.value = value;
    }
  
  
    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      VoceBilancioDto voceBilancioDto = (VoceBilancioDto) o;
      return Objects.equals(this.codeItem, voceBilancioDto.codeItem) &amp;&amp;
          Objects.equals(this.dateUpdateValue, voceBilancioDto.dateUpdateValue) &amp;&amp;
          Objects.equals(this.value, voceBilancioDto.value);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(codeItem, dateUpdateValue, value);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append(&quot;class VoceBilancioDto {\n&quot;);
      
      sb.append(&quot;    codeItem: &quot;).append(toIndentedString(codeItem)).append(&quot;\n&quot;);
      sb.append(&quot;    dateUpdateValue: &quot;).append(toIndentedString(dateUpdateValue)).append(&quot;\n&quot;);
      sb.append(&quot;    value: &quot;).append(toIndentedString(value)).append(&quot;\n&quot;);
      sb.append(&quot;}&quot;);
      return sb.toString();
    }
  
    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
      if (o == null) {
        return &quot;null&quot;;
      }
      return o.toString().replace(&quot;\n&quot;, &quot;\n    &quot;);
    }
  }
  </code></pre>
  <p>anyone can help?</p>
  <p>Many thanks</p>