小编Swa*_*are的帖子

在 Visual Studio 代码的实时服务器扩展中,在哪里设置 liveServer.settings.port 的值

我正在使用 Visual Studio 代码编辑器 URL 处理 Angular7:http://localhost:4200(工作正常)

但是,我安装了扩展Live Server,当我点击 Liveserver 图标时,它给了我错误

“端口 5500 错误。请尝试通过设置更改端口或在 GitHub 上报告。”

所以,我打开了File->preference->Settings->LiveServerConfig并尝试更改 settings.json 文件中的端口

{
    "typescript.tsdk": "./node_modules/typescript/lib",
    "tslint.enable": false,
    "liveServer.settings.multiRootWorkspaceName": "QiwkCollaboratorTool",
    "liveServer.settings.root": 0  // New added line
}
Run Code Online (Sandbox Code Playgroud)

我是朝着正确的方向前进还是遗漏了什么?我不知道如何将端口号 5500 更改为 0,因为我想要随机端口号。

提前致谢!

port-number visual-studio-code liveservertestcase

12
推荐指数
2
解决办法
3万
查看次数

面临休眠错误:引起:java.lang.ClassNotFoundException:net.bytebuddy.NamingStrategy$SuffixingRandom$BaseNameResolver

在 Eclipse 中运行此代码时出现错误。我已经创建了Student.java文件:

public class Student {
    private int id;
    private String name;
    private String email;
    private int marks;
    
    // getters/setters
}
Run Code Online (Sandbox Code Playgroud)

我已经创建了Student.hbm.xml文件:

<!DOCTYPE hibernate-mapping PUBLIC 
     "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
     "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
          
    <hibernate-mapping>
    <class name="bean.Student" table="student">
            <id name="id" column="sid"></id>
            <property name="name"  column="sname"></property>
            <property name="email" column="semail"></property>
            <property name="marks" column="smarks"></property>
    </class>
    </hibernate-mapping>
Run Code Online (Sandbox Code Playgroud)

我已经创建了hibernate.cfg.xml文件:

 <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
        
    <hibernate-configuration>
    <session-factory>
        <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
        <property name="connection.url">jdbc:oracle:thin:@localhost:1521:wind</property>
        <property name="connection.username">localuser</property>
        <property name="connection.password">localuser</property>
        <property name="connection.poolsize">5</property>
            
        <property name="dialect">org.hibernate.dialect.OracleDialect</property>
            
        <mapping resource="resources/student.hbm.xml"/> …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate classnotfoundexception

4
推荐指数
2
解决办法
1万
查看次数

How to select multiple rows in ng2-smart-table component with checkbox?

I am using ng2-smart-table from https://akveo.github.io/ng2-smart-table/#/documentation

Live Demo: http://akveo.com/ngx-admin/pages/tables/smart-table

Please help me with below questions:

  1. I want to select multiple rows and call one function so where I need to write this code in ng2-smart-table?

  2. Can I select multiple rows and call one function on selected rows ?

I have written below code in .ts and .html files:

smart-table-component.ts:

 actions: {
      add: false,
      edit: true,
      delete: false,
      custom: [{ name: 'ourCustomAction'}],
      position: 'left',
      columnTitle: 'Actions'

    },   

    mode: 'external',
Run Code Online (Sandbox Code Playgroud)

smart-table-component.html: …

typescript ng2-smart-table angular

4
推荐指数
2
解决办法
2617
查看次数