小编Gra*_*son的帖子

使用SC.exe设置服务凭据密码失败

我知道过去曾问过这个问题,但没有提供令人满意的答案.

我正在使用SC命令配置服务的凭据.

SC.exe config "SERVICE NAME" obj= "domain\user" password= "password"
Run Code Online (Sandbox Code Playgroud)

这成功完成,但是当我启动该服务时,它无法执行登录.
[ NET START "service name"]

如果我只手动更新services.msc中的密码,那么当我启动服务时,它可以正常工作.

我有数百台服务器在部署过程中更新此更改,因此不能选择手动干预.

我尝试使用配置更新登录帐户,然后使用另一个配置命令来输入密码.

从所有帐户,这SC.exe对密码不起作用,微软没有任何帮助.

想法?

windows command-line windows-services

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

Maven WADL插件没有生成可用的WADL

我正在尝试使用maven插件生成WADL.项目构建和服务工作.以下是POM插件的一部分:

             <plugin>
                <groupId>com.sun.jersey.contribs</groupId>
                <artifactId>maven-wadl-plugin</artifactId>
                <version>1.19.2</version>
                <executions>
                    <execution>
                        <id>generate</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <phase>package</phase>
                    </execution>
                </executions>

                <configuration>
                    <wadlFile>${basedir}/src/main/docs/ThingREST.wadl</wadlFile>
                    <formatWadlFile>true</formatWadlFile>
                    <baseUri>http://localhost:8080/ThingREST</baseUri>
                    <packagesResourceConfig>
                        <param>samp.rest.ws.controller</param>
                    </packagesResourceConfig>
                    <wadlGenerators>
                        <wadlGeneratorDescription>
                            <className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc
                            </className>
                            <properties>
                                <property>
                                    <name>applicationDocsFile</name>
                                    <value>${basedir}/src/main/docs/xml/app-wadl-doc.xml</value>
                                </property>
                            </properties>
                        </wadlGeneratorDescription>
                        <wadlGeneratorDescription>
                            <className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport
                            </className>
                            <properties>
                                <property>
                                    <name>grammarsFile</name>
                                    <value>${basedir}/src/main/docs/xml/app-wadl-grammar.xml</value>
                                </property>
                            </properties>
                        </wadlGeneratorDescription>                        
                    </wadlGenerators>
                </configuration>
            </plugin>
Run Code Online (Sandbox Code Playgroud)

applicationDocFile和grammarFile存在,但它们不包含任何重要信息.我不知道该包括什么.

这是控制器:

package samp.rest.ws.controller;

import java.util.List;
import samp.rest.ws.ThingDB;
import samp.rest.ws.vo.Thing;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author Grayson
 */
@RestController
public class ThingController {

    @RequestMapping(value = "/things", method …
Run Code Online (Sandbox Code Playgroud)

java rest plugins wadl maven

5
推荐指数
1
解决办法
1478
查看次数

标签 统计

command-line ×1

java ×1

maven ×1

plugins ×1

rest ×1

wadl ×1

windows ×1

windows-services ×1