만약 angel 14 angel이라는 13 (흐름 1) 호환성 (을) 모드에서이 아니라 봄 부팅 응용 프로그램이 실행

sswWeber :

만약 angel (14)이 화요일 발표 된 이후, 난 이미 내 봄 부팅 웹 응용 프로그램에서 사용했습니다. 내 pom.xml 파일 작업 벌금에 종속 포함. 응용 프로그램을 실행하는 것은 물론 잘 작동합니다. 그러나 곧 나는 다음과 같은 메시지가 브라우저를 통해 로컬 호스트에 연결로 :

2019-07-05 13:46:33.743  WARN 7812 --- [nio-8080-exec-1] c.v.f.s.DefaultDeploymentConfiguration   : 
====================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
====================================================================
2019-07-05 13:46:33.744  WARN 7812 --- [nio-8080-exec-1] c.v.f.s.DefaultDeploymentConfiguration   : 
====================================================================
Running in Vaadin 13 (Flow 1) compatibility mode.

This mode uses webjars/Bower for client side dependency management and HTML imports for dependency loading.

The default mode in Vaadin 14+ (Flow 2+) is based on npm for dependency management and JavaScript modules for dependency inclusion.

See http://vaadin.com/docs for more information.
====================================================================

오류에서 언급 한 바와 같이, 분명히 만약 angel (14)가 제대로 실행되지 않고는 만약 angel 13 compatiblity 모드로 다시 설정됩니다. 이 내 코드 또는 내 의존성의 버전을 함께 할 수있는 뭔가가 있다면 지금 궁금. 어떻게 만약 angel 13 호환성 모드로 왜 응용 프로그램 재설정을 찾을 / 확인할 수 있습니까? 그리고 새로운 Vaadin이 14에서 응용 프로그램의 안정성을 실행하는 방법은 무엇입니까? 내 pom.xml 파일과 클릭 메시지를 전송 단지 간단한 스타터 버튼 내 코드는 아래에 포함되어 있습니다.

난 이미 응용 프로그램 속성을 변경하여 만약 angel에 대한 디버그 모드를 사용하지 않도록 노력했다. 슬프게도이 전혀 작동하지 않았다.

pom.xml 파일 :

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.6.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>vaadinneuneu</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>vaadinneuneu</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>11</java.version>
        <vaadin.version>14.0.0.rc3</vaadin.version>
    </properties>

    <repositories>
        <!-- Repository needed for prerelease versions of Vaadin -->
        <repository>
            <id>vaadin-prereleases</id>
            <url>https://maven.vaadin.com/vaadin-prereleases</url>
            <snapshots><enabled>false</enabled></snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <!-- Repository needed for prerelease versions of Vaadin -->
        <pluginRepository>
            <id>vaadin-prereleases</id>
            <url>https://maven.vaadin.com/vaadin-prereleases</url>
            <snapshots><enabled>false</enabled></snapshots>
        </pluginRepository>
    </pluginRepositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-bom</artifactId>
                <version>14.0.0.rc3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>


    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-rest</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-spring-boot-starter</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>



    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

암호:

package com.example.vaadinneuneu;

import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.notification.Notification;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.server.PWA;

@Route(value = "home")
@PWA(name = "Kram", shortName = "Base")

public class MainView extends VerticalLayout {

    public MainView() {
        Button button = new Button("Click Me!",
                event -> Notification.show("Clicked!"));

        add(button);
    }
}
인 Guille :

이 호환성 모드로 실행됩니다 14.xx 할 수있는 버전을 업데이트하고 모든 이전과 같이 작업을해야 할 때 만약 angel 10-13로 생성 된 프로젝트에 기본적으로. 표시되는 경고 모드를 사용하고있는 오류, 단지 설명하지 않으며 그것은 만약 angel 버전 14.xx로 변경 한 기존 프로젝트에 대한 예상됩니다

당신이 의존성 포함을위한 클라이언트 측 의존성 관리와 자바 스크립트 모듈에 대한 NPM을 기반으로 새로운 모드로 업그레이드 할 경우, 한 번 봐 걸릴 만약 angel 14 마이그레이션 가이드 .

추천

출처http://43.154.161.224:23101/article/api/json?id=228031&siteId=1