Find the .project file, find the <natures> tag inside, and see if there is the following code


  How can there be a credit card repayment in Beijing [Tel/WeChat: 135-2093-5605] Beijing repayment credit card, Beijing VISA card cash out, point POS machine ◆Long-term validity ◆Welcome to inquire and handle! When developing a project with Eclipse, importing a Web project into Eclipse will turn it into a java project, which will not be able to be deployed and run in Tomcat.
  Method:
  1. Find the .project file, find the <natures> tag inside, check if there is the following code, if not, copy it in.
  Xml code
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem .workbench.JavaEMFNature</nature>
  Note: There is only the following sentence in the Java project:
  Xml code
<nature>org.eclipse.jdt.core.javanature</nature>
1. What is Velocity?

Velocity is a Java-based template engine. It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.

When Velocity is used for web development, Web designers can work in parallel with Java programmers to develop web sites according to the Model-View-Controller (MVC) model, meaning that web page designers can focus solely on creating a site that looks good, and programmers can focus solely on writing top-notch code. Velocity separates Java code from the web pages, making the web site more maintainable over its lifespan and providing a viable alternative to Java Server Pages (JSPs) or PHP.
Velocity's capabilities reach well beyond the realm of the web; for example, it can be used to generate SQL, PostScript and XML from templates. It can be used either as a standalone utility for generating source code and reports, or as an integrated component of other systems. For instance, Velocity provides template services for various web frameworks, enabling them with a view engine facilitating development of web applications according to a true MVC model.



Velocity is a java-based template engine. It allows anyone to simply use a template language to refer to objects defined by java code.

When Velocity is applied to web development, interface designers and java program developers can simultaneously develop a web site that follows the MVC architecture, that is, page designers can only focus on the display effect of the page, while java program developers focus on business logical coding. Velocity separates the java code from the web page, which facilitates the long-term maintenance of the web site, and also provides us with an optional solution besides JSP and PHP.

Velocity's capabilities go far beyond web site development, for example, it can generate SQL and PostScript, XML from templates, it can also be used as a standalone tool to generate source code and reports, or as an integrated component of other systems use. Velocity can also provide a template service for the Turbine web development framework. The way Velocity+Turbine provides a template service allows a web application to be developed in a true MVC model. 2. Refresh the imported project
  3. Right-click on the project, enter the Properties configuration, click Project Facets, and then click Convert to faceted form to enter the property settings:
  
  4. Check Dynamic Web Module and Java, select the corresponding version, and click below The Further configuration available appears:
  http://pp.163.com/bjshq/pp/18232051.html
http://pp.163.com/bjshq/pp/18232050.html
http://pp.163.com/ bjshq/pp/18232049.html
http://pp.163.com/bjshq/pp/18232048.html
http://pp.163.com/bjshq/pp/18232047.html
http://pp.163.com /bjshq/pp/18232046.html
http://pp.163.com/bjshq/pp/18232045.html
  5. Modify the default WebContent of eclipse to WebRoot, and check the Generate web.xml deployment deor according to your own needs:
  New function:
Add SSDT-BI project template for analysis service, reporting service and integration service, and in Visual Studio 2015 Support
Added for Microsoft SQL Server 2016 in SSIS DataFlow
Implemented IEnumerable, ICollection and IList interfaces in OracleSqlStatementCollection
Oracle 10g and higher alternative quoted character constants will be supported in OracleScript
Performance use default value (changed to 8192 ), PacketSize can directly
insert data through VPN connection mode CLOB Improvements
for Entity Developer:
Now supports Entity Framework Core 1.0 RTM
uses the metadata obtained by parameter settings in stored procedures to automatically generate corresponding more complex types
Now Initialization of ObservableCollection navigation properties is defaulted to constructor (Entity Framework model)
Improvements for Entity Framework:
Support for Entity Framework Core 1.0 RTM
Implement OracleConventionSetBuilde class in Entity Framework Core support
The SqlFunctions.DatePart method supports year, month, day, hour, minute, second, millisecond and other modifiers
.
Implements CreateTable operation in EF6 Code-First migration, and creates OracleColumnAnnotations class from Define the column
  
  5. Click OK-->Apply to apply the settings, and the Java project is converted into a Web project.
  Note: If you forget to click on Further configuration available, that is, you forget to change WebContent to WebRoot,
  you can click the Deployment Assembly option, then delete WebContent and add WebRoot.
  
  
  Illustration:
  Creating or Importing:
  
  Modifying:
  
  Modifying Completed:
  
  Running in Tomcat:
  
  Note:
  The steps for creating a new Web project are the same, the only difference is:
  To set WebRoot, it can only be set in the Further configuration available,
  not in Deployment Assembly in the settings.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326720903&siteId=291194637